Lines Matching refs:zPath
2335 const char *zPath, in statTimesToUtc() argument
2342 zUnicodeName = sqlite3_win32_utf8_to_unicode(zPath); in statTimesToUtc()
2363 const char *zPath, in fileStat() argument
2367 int rc = stat(zPath, pStatBuf); in fileStat()
2368 if( rc==0 ) statTimesToUtc(zPath, pStatBuf); in fileStat()
2371 return stat(zPath, pStatBuf); in fileStat()
2381 const char *zPath, in fileLinkStat() argument
2385 int rc = lstat(zPath, pStatBuf); in fileLinkStat()
2386 if( rc==0 ) statTimesToUtc(zPath, pStatBuf); in fileLinkStat()
2389 return lstat(zPath, pStatBuf); in fileLinkStat()
2661 char *zPath; /* Path to current entry */ member
2730 sqlite3_free(pCur->zPath); in fsdirResetCursor()
2733 pCur->zPath = 0; in fsdirResetCursor()
2788 pLvl->zDir = pCur->zPath; in fsdirNext()
2789 pCur->zPath = 0; in fsdirNext()
2792 fsdirSetErrmsg(pCur, "cannot read directory: %s", pCur->zPath); in fsdirNext()
2805 sqlite3_free(pCur->zPath); in fsdirNext()
2806 pCur->zPath = sqlite3_mprintf("%s/%s", pLvl->zDir, pEntry->d_name); in fsdirNext()
2807 if( pCur->zPath==0 ) return SQLITE_NOMEM; in fsdirNext()
2808 if( fileLinkStat(pCur->zPath, &pCur->sStat) ){ in fsdirNext()
2809 fsdirSetErrmsg(pCur, "cannot stat file: %s", pCur->zPath); in fsdirNext()
2822 sqlite3_free(pCur->zPath); in fsdirNext()
2823 pCur->zPath = 0; in fsdirNext()
2839 sqlite3_result_text(ctx, &pCur->zPath[pCur->nBase], -1, SQLITE_TRANSIENT); in fsdirColumn()
2863 n = readlink(pCur->zPath, aBuf, nBuf); in fsdirColumn()
2878 readFileContents(ctx, pCur->zPath); in fsdirColumn()
2908 return (pCur->zPath==0); in fsdirEof()
2943 pCur->zPath = sqlite3_mprintf("%s/%s", pCur->zBase, zDir); in fsdirFilter()
2945 pCur->zPath = sqlite3_mprintf("%s", zDir); in fsdirFilter()
2948 if( pCur->zPath==0 ){ in fsdirFilter()
2951 if( fileLinkStat(pCur->zPath, &pCur->sStat) ){ in fsdirFilter()
2952 fsdirSetErrmsg(pCur, "cannot stat file: %s", pCur->zPath); in fsdirFilter()
4080 static int apndDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){ in apndDelete() argument
4081 return ORIGVFS(pVfs)->xDelete(ORIGVFS(pVfs), zPath, dirSync); in apndDelete()
4085 const char *zPath, in apndAccess() argument
4089 return ORIGVFS(pVfs)->xAccess(ORIGVFS(pVfs), zPath, flags, pResOut); in apndAccess()
4093 const char *zPath, in apndFullPathname() argument
4097 return ORIGVFS(pVfs)->xFullPathname(ORIGVFS(pVfs),zPath,nOut,zOut); in apndFullPathname()
4099 static void *apndDlOpen(sqlite3_vfs *pVfs, const char *zPath){ in apndDlOpen() argument
4100 return ORIGVFS(pVfs)->xDlOpen(ORIGVFS(pVfs), zPath); in apndDlOpen()
5706 static ZipfileEntry *zipfileNewEntry(const char *zPath){ in zipfileNewEntry() argument
5711 pNew->cds.zFile = sqlite3_mprintf("%s", zPath); in zipfileNewEntry()
5921 const char *zPath = 0; /* Path for new entry */ in zipfileUpdate() local
6008 zPath = (const char*)sqlite3_value_text(apVal[2]); in zipfileUpdate()
6009 if( zPath==0 ) zPath = ""; in zipfileUpdate()
6010 nPath = (int)strlen(zPath); in zipfileUpdate()
6019 if( nPath<=0 || zPath[nPath-1]!='/' ){ in zipfileUpdate()
6020 zFree = sqlite3_mprintf("%s/", zPath); in zipfileUpdate()
6021 zPath = (const char*)zFree; in zipfileUpdate()
6026 nPath = (int)strlen(zPath); in zipfileUpdate()
6036 if( zipfileComparePath(p->cds.zFile, zPath, nPath)==0 ){ in zipfileUpdate()
6046 zipfileTableErr(pTab, "duplicate name: \"%s\"", zPath); in zipfileUpdate()
6058 pNew = zipfileNewEntry(zPath); in zipfileUpdate()
18814 char *zDrive, *zPath; in find_home_dir() local
18817 zPath = getenv("HOMEPATH"); in find_home_dir()
18818 if( zDrive && zPath ){ in find_home_dir()
18819 n = strlen30(zDrive) + strlen30(zPath) + 1; in find_home_dir()
18822 sqlite3_snprintf(n, home_dir, "%s%s", zDrive, zPath); in find_home_dir()