|
|
@ -141,13 +141,13 @@ int32_t OS_portable_rmdir(char *dirname,int32_t diralso) |
|
|
|
sprintf(cmdstr,"rm -rf %s",tmp); |
|
|
|
if ( system(cmdstr) != 0 ) |
|
|
|
printf("error deleting dir.(%s)\n",cmdstr); |
|
|
|
sprintf(cmdstr,"mkdir %s",tmp); |
|
|
|
if ( system(cmdstr) != 0 ) |
|
|
|
printf("error deleting dir.(%s)\n",cmdstr); |
|
|
|
//sprintf(cmdstr,"rmdir %s",tmp);
|
|
|
|
//if ( system(cmdstr) != 0 )
|
|
|
|
// printf("error deleting dir.(%s)\n",cmdstr);
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
for (i=0; i<=16; i++) |
|
|
|
//for (i=0; i<=16; i++)
|
|
|
|
{ |
|
|
|
//if ( i < 16 )
|
|
|
|
// sprintf(cmdstr,"rm %s/%c*",tmp,i<10?'0'+i:'a'-10+i);
|
|
|
|