archivers/dir.c
changeset 41 ff60d39d0862
parent 29 91b45664ec85
child 69 546a95cc5591
equal deleted inserted replaced
40:8cc16df4bada 41:ff60d39d0862
   138     retval->funcs = &__PHYSFS_DirFunctions_DIR;
   138     retval->funcs = &__PHYSFS_DirFunctions_DIR;
   139     return(retval);
   139     return(retval);
   140 } /* DIR_openArchive */
   140 } /* DIR_openArchive */
   141 
   141 
   142 
   142 
   143 static LinkedStringList *DIR_enumerateFiles(DirHandle *h, const char *dname)
   143 static LinkedStringList *DIR_enumerateFiles(DirHandle *h,
       
   144                                             const char *dname,
       
   145                                             int omitSymLinks)
   144 {
   146 {
   145     char *d = __PHYSFS_platformCvtToDependent((char *)(h->opaque),dname,NULL);
   147     char *d = __PHYSFS_platformCvtToDependent((char *)(h->opaque),dname,NULL);
   146     LinkedStringList *retval;
   148     LinkedStringList *retval;
   147 
   149 
   148     BAIL_IF_MACRO(d == NULL, NULL, NULL);
   150     BAIL_IF_MACRO(d == NULL, NULL, NULL);
   149     retval = __PHYSFS_platformEnumerateFiles(d);
   151     retval = __PHYSFS_platformEnumerateFiles(d, omitSymLinks);
   150     free(d);
   152     free(d);
   151     return(retval);
   153     return(retval);
   152 } /* DIR_enumerateFiles */
   154 } /* DIR_enumerateFiles */
   153 
   155 
   154 
   156