Skip to content
Snippets Groups Projects
Commit ede6d004 authored by deuce's avatar deuce
Browse files

Use removecase() rather than remove() to delete stale description files.

-- Fixes bug reported by Jon Justvig (Thanks!)
parent a74ab3bd
No related branches found
No related tags found
No related merge requests found
......@@ -270,11 +270,11 @@ void addlist(char *inpath, file_t f, uint dskip, uint sskip)
break;
if(i<scfg.total_fextrs) {
sprintf(tmp,"%sFILE_ID.DIZ",scfg.temp_dir);
remove(tmp);
removecase(tmp);
system(mycmdstr(scfg.fextr[i]->cmd,filepath,"FILE_ID.DIZ",NULL));
if(!fexistcase(tmp)) {
sprintf(tmp,"%sDESC.SDI",scfg.temp_dir);
remove(tmp);
removecase(tmp);
system(mycmdstr(scfg.fextr[i]->cmd,filepath,"DESC.SDI",NULL));
fexistcase(tmp);
}
......@@ -473,11 +473,11 @@ void addlist(char *inpath, file_t f, uint dskip, uint sskip)
break;
if(i<scfg.total_fextrs) {
sprintf(tmp,"%sFILE_ID.DIZ",scfg.temp_dir);
remove(tmp);
removecase(tmp);
system(mycmdstr(scfg.fextr[i]->cmd,filepath,"FILE_ID.DIZ",NULL));
if(!fexistcase(tmp)) {
sprintf(tmp,"%sDESC.SDI",scfg.temp_dir);
remove(tmp);
removecase(tmp);
system(mycmdstr(scfg.fextr[i]->cmd,filepath,"DESC.SDI",NULL));
fexistcase(tmp);
}
......@@ -895,11 +895,11 @@ int main(int argc, char **argv)
break;
if(i<scfg.total_fextrs) {
sprintf(tmp,"%sFILE_ID.DIZ",scfg.temp_dir);
remove(tmp);
removecase(tmp);
system(mycmdstr(scfg.fextr[i]->cmd,str,"FILE_ID.DIZ",NULL));
if(!fexistcase(tmp)) {
sprintf(tmp,"%sDESC.SDI",scfg.temp_dir);
remove(tmp);
removecase(tmp);
system(mycmdstr(scfg.fextr[i]->cmd,str,"DESC.SDI",NULL));
fexistcase(tmp);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment