mirror of
https://github.com/joel16/NX-Shell.git
synced 2024-11-26 21:20:27 +00:00
fs: In FS::DeleteRecursive, check if the provided path is '/' and not the cwd (fixes #119)
This commit is contained in:
parent
e96caf2af4
commit
2b9a81189e
@ -151,7 +151,7 @@ namespace FS {
|
||||
continue;
|
||||
|
||||
std::string file_path = path;
|
||||
file_path.append(cwd.compare("/") == 0? "" : "/");
|
||||
file_path.append(path.compare("/") == 0? "" : "/");
|
||||
file_path.append(filename);
|
||||
|
||||
if (entry->d_type & DT_DIR) {
|
||||
|
Loading…
Reference in New Issue
Block a user