mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Use entry path when deleting file
This commit is contained in:
@@ -146,7 +146,7 @@ void DeleteContents(string path) {
|
||||
if (S_ISDIR(statResult.st_mode))
|
||||
DeleteContents(entryPath);
|
||||
else if (S_ISREG(statResult.st_mode))
|
||||
remove(path.c_str());
|
||||
remove(entryPath.c_str());
|
||||
}
|
||||
free(children);
|
||||
rmdir(dirPath);
|
||||
|
||||
Reference in New Issue
Block a user