Don't fail if ENOENT

This commit is contained in:
Max Howell 2012-08-10 16:08:50 -04:00
parent ad80c616b8
commit 28ee57aa3c

View File

@ -145,7 +145,7 @@ class Pathname
rmdir rmdir
true true
rescue SystemCallError => e rescue SystemCallError => e
raise unless e.errno == Errno::ENOTEMPTY::Errno or e.errno == Errno::EACCES::Errno raise unless e.errno == Errno::ENOTEMPTY::Errno or e.errno == Errno::EACCES::Errno or e.errno == Errno::ENOENT::Errno
false false
end end