Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Commit

Permalink
Added Errno::ENOTDIR to the list of errors when rmdiring
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Yurek committed Jan 7, 2009
1 parent c9205f4 commit c770395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paperclip/storage.rb
Expand Up @@ -61,7 +61,7 @@ def flush_deletes #:nodoc:
path = File.dirname(path)
FileUtils.rmdir(path)
end
rescue Errno::ENOTEMPTY, Errno::ENOENT, Errno::EINVAL
rescue Errno::ENOTEMPTY, Errno::ENOENT, Errno::EINVAL, Errno::ENOTDIR
# Stop trying to remove parent directories
end
end
Expand Down

0 comments on commit c770395

Please sign in to comment.