Commit fa241469 authored by Shinya Maeda's avatar Shinya Maeda

Use safer way than `rm_rf`

parent ff332178
......@@ -241,7 +241,8 @@ module ObjectStorage
cache_stored_file!
yield cache_path
ensure
FileUtils.rm_rf(cache_path(nil))
FileUtils.rm_f(cache_path)
cache_storage.delete_dir!(cache_path(nil))
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment