Use entry path when deleting file

This commit is contained in:
Kevin Sawicki
2012-06-13 15:37:10 -07:00
parent 3aaaef2cc1
commit cce9a159b2

View File

@@ -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);