int __PHYSFS_platformDelete(const char *path) { if (__PHYSFS_platformIsDirectory(path)) return(os2err(DosDeleteDir(path)) == NO_ERROR); return(os2err(DosDelete(path) == NO_ERROR)); } /* __PHYSFS_platformDelete */
static int DIR_isDirectory(dvoid *opaque, const char *name, int *fileExists) { char *d = __PHYSFS_platformCvtToDependent((char *) opaque, name, NULL); int retval = 0; BAIL_IF_MACRO(d == NULL, NULL, 0); *fileExists = __PHYSFS_platformExists(d); if (*fileExists) retval = __PHYSFS_platformIsDirectory(d); allocator.Free(d); return(retval); } /* DIR_isDirectory */
static int DIR_isDirectory(DirHandle *h, const char *name, int *fileExists) { char *d = __PHYSFS_platformCvtToDependent((char *)(h->opaque), name, NULL); int retval = 0; BAIL_IF_MACRO(d == NULL, NULL, 0); *fileExists = __PHYSFS_platformExists(d); if (*fileExists) retval = __PHYSFS_platformIsDirectory(d); free(d); return(retval); } /* DIR_isDirectory */
static int DIR_isArchive(const char *filename, int forWriting) { /* directories ARE archives in this driver... */ return(__PHYSFS_platformIsDirectory(filename)); } /* DIR_isArchive */
bool ex_os_isfile ( const char *_path ) { if ( __PHYSFS_platformExists(_path) == false ) { return false; } return (__PHYSFS_platformIsSymLink(_path) || __PHYSFS_platformIsDirectory(_path)) ? false : true; }
bool ex_os_isdir ( const char *_path ) { return __PHYSFS_platformIsDirectory(_path); }