archivers/dir.c
changeset 137 66bddb94b6e0
parent 135 57ba3130b1e7
child 138 3af38f5bd54d
equal deleted inserted replaced
136:e70c4231a8b7 137:66bddb94b6e0
   297 {
   297 {
   298     char *f = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL);
   298     char *f = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL);
   299     int retval;
   299     int retval;
   300 
   300 
   301     BAIL_IF_MACRO(f == NULL, NULL, 0);
   301     BAIL_IF_MACRO(f == NULL, NULL, 0);
   302 
   302     retval = __PHYSFS_platformDelete(f);
   303     /* !!! FIXME: Abstract in platform drivers. */
       
   304     errno = 0;
       
   305     retval = (remove(f) == 0);
       
   306     if (!retval)
       
   307         __PHYSFS_setError(strerror(errno));
       
   308 
       
   309     free(f);
   303     free(f);
   310     return(retval);
   304     return(retval);
   311 } /* DIR_remove */
   305 } /* DIR_remove */
   312 
   306 
   313 
   307