true
on successDoes not go through symbolic links and may get stuck in a cycle if there is a cycle in the filesystem.
Return an error object in case of error.
assert "/fail/does not/exist".rmdir != null
# Delete a directory and all of its content, return `true` on success
#
# Does not go through symbolic links and may get stuck in a cycle if there
# is a cycle in the filesystem.
#
# Return an error object in case of error.
#
# assert "/fail/does not/exist".rmdir != null
fun rmdir: nullable Error
do
var p = to_path
p.rmdir
return p.last_error
end
lib/core/file.nit:1264,2--1277,4