Lines Matching refs:tmppath
626 char *tmppath = autogen; in FSi_ComplementDirectory() local
627 if (FSi_GetFullPath(tmppath, path)) in FSi_ComplementDirectory()
629 int length = STD_GetStringLength(tmppath); in FSi_ComplementDirectory()
633 FS_DEBUG_TRACE(" trying to complete \"%s\"\n", tmppath); in FSi_ComplementDirectory()
635 length = FSi_TrimSjisTrailingSlash(tmppath); in FSi_ComplementDirectory()
637 length = FSi_DecrementSjisPositionToSlash(tmppath, length); in FSi_ComplementDirectory()
643 tmppath[pos] = '\0'; in FSi_ComplementDirectory()
644 exists = FS_GetPathInfo(tmppath, info); in FSi_ComplementDirectory()
645 … FS_DEBUG_TRACE(" - \"%s\" is%s existent (result:%d)\n", tmppath, exists ? "" : " not", in FSi_ComplementDirectory()
646 FS_GetArchiveResultCode(tmppath)); in FSi_ComplementDirectory()
647 tmppath[pos] = '/'; in FSi_ComplementDirectory()
651 pos = FSi_DecrementSjisPositionToSlash(tmppath, pos); in FSi_ComplementDirectory()
682 pos = FSi_IncrementSjisPositionToSlash(tmppath, pos); in FSi_ComplementDirectory()
683 tmppath[pos] = '\0'; in FSi_ComplementDirectory()
684 if (!FS_CreateDirectory(tmppath, FS_PERMIT_R | FS_PERMIT_W)) in FSi_ComplementDirectory()
693 FS_DEBUG_TRACE(" - we have created \"%s\" as root\n", tmppath); in FSi_ComplementDirectory()
696 tmppath[pos++] = '/'; in FSi_ComplementDirectory()
817 char tmppath[FS_ARCHIVE_FULLPATH_MAX + 1]; in FS_DeleteDirectoryAuto() local
818 if (FSi_GetFullPath(tmppath, path)) in FS_DeleteDirectoryAuto()
822 int length = FSi_TrimSjisTrailingSlash(tmppath); in FS_DeleteDirectoryAuto()
823 FS_DEBUG_TRACE(" trying to force-delete \"%s\"\n", tmppath); in FS_DeleteDirectoryAuto()
829 tmppath[length + pos] = '\0'; in FS_DeleteDirectoryAuto()
830 if (mayBeEmpty && (FS_DeleteDirectory(tmppath) || in FS_DeleteDirectoryAuto()
831 (FS_GetArchiveResultCode(tmppath) == FS_RESULT_ALREADY_DONE))) in FS_DeleteDirectoryAuto()
833 FS_DEBUG_TRACE(" -> succeeded to delete \"%s\"\n", tmppath); in FS_DeleteDirectoryAuto()
834 pos = FSi_DecrementSjisPositionToSlash(&tmppath[length], pos); in FS_DeleteDirectoryAuto()
841 if (!FS_OpenDirectory(dir, tmppath, FS_FILEMODE_R)) in FS_DeleteDirectoryAuto()
843 FS_DEBUG_TRACE(" -> failed to delete & open \"%s\"\n", tmppath); in FS_DeleteDirectoryAuto()
849 tmppath[length + pos] = '/'; in FS_DeleteDirectoryAuto()
853 (void)STD_CopyString(&tmppath[length + pos + 1], info->longname); in FS_DeleteDirectoryAuto()
857 if (!FS_DeleteFile(tmppath)) in FS_DeleteDirectoryAuto()
859 FS_DEBUG_TRACE(" -> failed to delete file \"%s\"\n", tmppath); in FS_DeleteDirectoryAuto()
863 FS_DEBUG_TRACE(" -> succeeded to delete \"%s\"\n", tmppath); in FS_DeleteDirectoryAuto()
871 else if (!FS_DeleteDirectory(tmppath)) in FS_DeleteDirectoryAuto()