diff --git a/vlib/os/os.v b/vlib/os/os.v index 77b26e8544..8632040b8e 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -135,7 +135,7 @@ pub fn rmdir_all(path string) ? { items := ls(path) ? for item in items { fullpath := join_path(path, item) - if is_dir(fullpath) { + if is_dir(fullpath) && !is_link(fullpath) { rmdir_all(fullpath) or { ret_err = err.msg } } else { rm(fullpath) or { ret_err = err.msg }