os api: rmdir_recursive => rmdir_all

This commit is contained in:
yuyi 2020-03-03 22:02:50 +08:00 committed by GitHub
parent 3f67ba08b1
commit 448ed41562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 17 additions and 12 deletions

View file

@ -43,7 +43,7 @@ pub fn rmrf(path string) {
verbose_trace(@FN, 'rm -rf $path')
if os.exists(path) {
if os.is_dir(path) {
os.rmdir_recursive(path)
os.rmdir_all(path)
}else{
os.rm(path)
}