标签: ruby
运行FileUtils.rm(a_folder)给我错误:
FileUtils.rm(a_folder)
Errno::ENOENT: No such file or directory @ unlink_internal - a_folder
a_folder绝对有效,我实际上是通过
a_folder
Dir.foreach(path) do |f| if f != '.' && f != '..' FileUtils.rm(f) end end
rm_rf和remove_dir的问题。
rm_rf
remove_dir