Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
afd7008b3b
  1. 7
      crypto777/OS_portable.c

7
crypto777/OS_portable.c

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

Loading…
Cancel
Save