nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
core::file: fix `rmdir` to raise an error on failure to remove a folder
[nit.git]
/
lib
/
core
/
file.nit
diff --git
a/lib/core/file.nit
b/lib/core/file.nit
index
dc1ccb7
..
d19bb8e
100644
(file)
--- a/
lib/core/file.nit
+++ b/
lib/core/file.nit
@@
-738,7
+738,7
@@
class Path
# Delete the directory itself if things are fine
if last_error == null then
- if path.to_cstring.rmdir then
+ if not path.to_cstring.rmdir then
last_error = new IOError("Cannot remove `{self}`: {sys.errno.strerror}")
end
end