*polished shell.
This commit is contained in:
parent
029ba170cd
commit
3afe5b7e03
@ -927,7 +927,13 @@ static void _kill_program(const char* path) {
|
||||
if(!unlink(path)) {
|
||||
_printf("Delete file \"%s\" successfully.\n", path);
|
||||
} else {
|
||||
_printf("Delete file \"%s\" failed.\n", path);
|
||||
FILE* fp = fopen(path, "rb");
|
||||
if(fp) {
|
||||
fclose(fp);
|
||||
_printf("Delete file \"%s\" failed.\n", path);
|
||||
} else {
|
||||
_printf("File \"%s\" not found.\n", path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user