pathname: fix rmdir_if_possible with mount points
Attempting to rmdir a directory that is a mount point results in EBUSY, not EACCES or ENOENT, so also rescue EBUSY in rmdir_if_possible.
This commit is contained in:
parent
d14fd49b30
commit
2e1ec02aeb
@ -255,7 +255,7 @@ class Pathname
|
|||||||
else
|
else
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
rescue Errno::EACCES, Errno::ENOENT
|
rescue Errno::EACCES, Errno::ENOENT, Errno::EBUSY
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user