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