fix rmdir when moving folders

This commit is contained in:
Chee Yee
2023-02-13 23:20:58 -08:00
parent 833aede808
commit 4a883a6af2
+1 -2
View File
@@ -1283,8 +1283,6 @@ namespace Actions
return ret;
}
}
if (!isCopy)
FS::RmDir(src.path);
free(new_path);
}
}
@@ -1328,6 +1326,7 @@ namespace Actions
char new_dir[512];
sprintf(new_dir, "%s%s%s", local_directory, FS::hasEndSlash(local_directory) ? "" : "/", it->name);
CopyOrMove(*it, new_dir, false);
FS::RmRecursive(it->path);
}
else
{