app/uploaders/file_uploader.rb in lolita-file-upload-0.4.8 vs app/uploaders/file_uploader.rb in lolita-file-upload-0.4.9
- old
+ new
@@ -26,13 +26,13 @@
end
end
def delete_empty_upstream_dirs
path = ::File.expand_path(store_dir, root)
- FileUtils.rm_rf path # always remove
+ #FileUtils.rm_rf path # always remove
# path = ::File.expand_path(base_store_dir, root)
- # Dir.delete(path) # fails if path not empty dir
+ Dir.delete(path) # fails if path not empty dir
rescue SystemCallError
true # nothing, the dir is not empty
end
def image?(file)
\ No newline at end of file