nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
core::file: add docunit for expected behavior on deleting existing folders
[nit.git]
/
lib
/
core
/
file.nit
diff --git
a/lib/core/file.nit
b/lib/core/file.nit
index
d19bb8e
..
9e23be2
100644
(file)
--- a/
lib/core/file.nit
+++ b/
lib/core/file.nit
@@
-717,6
+717,12
@@
class Path
# var path = "/does/not/exists/".to_path
# path.rmdir
# assert path.last_error != null
+ #
+ # path = "/tmp/path/to/create".to_path
+ # path.to_s.mkdir
+ # assert path.exists
+ # path.rmdir
+ # assert path.last_error == null
# ~~~
fun rmdir
do