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

remove rmdir()

This commit is contained in:
Alexander Medvednikov 2019-06-22 21:45:19 +02:00
parent 07fb7756fb
commit b5c3cda33b

13
os/os.v
View File

@ -386,18 +386,19 @@ pub fn rm(path string) {
// C.unlink(path.cstr()) // C.unlink(path.cstr())
} }
/*
// TODO
fn rmdir(path string, guard string) { fn rmdir(path string, guard string) {
if !path.contains(guard) { if !path.contains(guard) {
println('rmdir canceled because the path doesnt contain $guard') println('rmdir canceled because the path doesnt contain $guard')
return return
} }
println2('rmdir "$path"') $if !windows {
#ifndef windows }
os.system('rm -rf "$path"') $else {
#else }
os.system('rmdir /s /q "$path"')
#endif
} }
*/
pub fn unzip(path, out string) { pub fn unzip(path, out string) {
$if windows { $if windows {