Fix directory checking on delete action.

This commit is contained in:
2017-07-15 23:13:43 +02:00
parent a068022148
commit 0a03410b65

View File

@@ -254,7 +254,7 @@ void AccionFileNodeAux_Copy(char *pathOrig, char *pathDest) {
} }
} }
void AccionFileNodeAux_Delete(char *pathOrig, char *pathDest) { void AccionFileNodeAux_Delete(char *pathOrig, char *pathDest) {
if (File_IsDirectory(pathDest) == 0) { if (File_IsDirectory(pathDest)) {
if (File_DeleteDirectory(pathDest) == 0) { if (File_DeleteDirectory(pathDest) == 0) {
Print("Error Deleting Directory: %s, %s\n", pathDest, GetError()); Print("Error Deleting Directory: %s, %s\n", pathDest, GetError());
} }