Permalink
Browse files

Added Errno::ENOTDIR to the list of errors when rmdiring

  • Loading branch information...
jyurek committed Jan 7, 2009
1 parent c9205f4 commit c77039524ff197837653a9ef8f84d6414eb8eda1
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/storage.rb
View
@@ -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

0 comments on commit c770395

Please sign in to comment.