Skip to content
Snippets Groups Projects
Commit 0bf030bd authored by rswindell's avatar rswindell
Browse files

Removed delfiles definition (defined in dirwrap.c).

parent 0e5d8f98
No related branches found
No related tags found
No related merge requests found
......@@ -841,32 +841,6 @@ indicate a Baja shell file named MYBBS.BIN in your EXEC directory.
break; } } }
}
/****************************************************************************/
/* Deletes all files in dir 'path' that match file spec 'spec' */
/****************************************************************************/
int delfiles(char *inpath, char *spec)
{
char path[MAX_PATH+1];
uint i,files=0;
glob_t g;
strcpy(path,inpath);
backslash(path);
strcat(path,spec);
glob(path,0,NULL,&g);
for(i=0;i<g.gl_pathc;i++) {
if(isdir(g.gl_pathv[i]))
continue;
CHMOD(g.gl_pathv[i],S_IWRITE); // Incase it's been marked RDONLY
if(remove(g.gl_pathv[i]))
errormsg(WHERE,ERR_REMOVE,g.gl_pathv[i],0);
else
files++;
}
globfree(&g);
return(files);
}
int whichlogic()
{
int i;
......
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