mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: fix os.rmdir_all for folders with recursive symlinks
This commit is contained in:
parent
1bbc73384c
commit
24ffc1ffb2
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user