1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: fix rmdir on windows

This commit is contained in:
Delyan Angelov 2020-06-26 17:24:36 +03:00
parent 8903f6e0c0
commit 951f30853a

View File

@ -651,7 +651,7 @@ pub fn rmdir(path string) ? {
} }
} $else { } $else {
rc := C.RemoveDirectory(path.to_wide()) rc := C.RemoveDirectory(path.to_wide())
if rc == -1 { if rc == 0 {
return error('Failed to remove "$path"') return error('Failed to remove "$path"')
} }
} }