From b5c3cda33b53b7eee9c2b4f2be657477968355f2 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 22 Jun 2019 21:45:19 +0200 Subject: [PATCH] remove rmdir() --- os/os.v | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/os/os.v b/os/os.v index 367b359a31..3d867b3da2 100644 --- a/os/os.v +++ b/os/os.v @@ -386,18 +386,19 @@ pub fn rm(path string) { // C.unlink(path.cstr()) } +/* +// TODO fn rmdir(path string, guard string) { if !path.contains(guard) { println('rmdir canceled because the path doesnt contain $guard') return } - println2('rmdir "$path"') -#ifndef windows - os.system('rm -rf "$path"') -#else - os.system('rmdir /s /q "$path"') -#endif + $if !windows { + } + $else { + } } +*/ pub fn unzip(path, out string) { $if windows {