Don't fail if ENOENT
This commit is contained in:
parent
ad80c616b8
commit
28ee57aa3c
@ -145,7 +145,7 @@ class Pathname
|
||||
rmdir
|
||||
true
|
||||
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
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user