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:
parent
8903f6e0c0
commit
951f30853a
@ -651,7 +651,7 @@ pub fn rmdir(path string) ? {
|
||||
}
|
||||
} $else {
|
||||
rc := C.RemoveDirectory(path.to_wide())
|
||||
if rc == -1 {
|
||||
if rc == 0 {
|
||||
return error('Failed to remove "$path"')
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user