Skip to content

Commit f9a66af

Browse files
authored
Update functions.c
1 parent 3d4f6d9 commit f9a66af

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

c/functions.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ TidyBoolean tidyFg_delete(char[] tidyPath){
151151
return FALSE;
152152
}
153153
#else
154-
if(rm)
154+
if(rmdir(tidyPath) == 0){
155+
return TRUE;
156+
}
157+
else{
158+
return FALSE;
159+
}
160+
#endif
155161
}
156162
}

0 commit comments

Comments
 (0)