Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Also handle Errno::EACCES when trying to delete the directory.

Closes #216
  • Loading branch information...
commit 41bc6b4a2684c8a48b9ef4f4af9046a664eedc67 1 parent 5e86a99
@sikachu sikachu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/paperclip/storage/filesystem.rb
View
2  lib/paperclip/storage/filesystem.rb
@@ -63,7 +63,7 @@ def flush_deletes #:nodoc:
FileUtils.rmdir(path)
break if File.exists?(path) # Ruby 1.9.2 does not raise if the removal failed.
end
- rescue Errno::EEXIST, Errno::ENOTEMPTY, Errno::ENOENT, Errno::EINVAL, Errno::ENOTDIR
+ rescue Errno::EEXIST, Errno::ENOTEMPTY, Errno::ENOENT, Errno::EINVAL, Errno::ENOTDIR, Errno::EACCES
# Stop trying to remove parent directories
rescue SystemCallError => e
log("There was an unexpected error while deleting directories: #{e.class}")
Please sign in to comment.
Something went wrong with that request. Please try again.