mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os api: rmdir_recursive => rmdir_all
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user