MCPcopy Create free account
hub / github.com/audacity/audacity / fileStat

Function fileStat

lib-src/sqlite/shell.c:2380–2391  ·  view source on GitHub ↗

** This function is used in place of stat(). On Windows, special handling ** is required in order for the included time to be returned as UTC. On all ** other systems, this function simply calls stat(). */

Source from the content-addressed store, hash-verified

2378** other systems, this function simply calls stat().
2379*/
2380static int fileStat(
2381 const char *zPath,
2382 struct stat *pStatBuf
2383){
2384#if defined(_WIN32)
2385 int rc = stat(zPath, pStatBuf);
2386 if( rc==0 ) statTimesToUtc(zPath, pStatBuf);
2387 return rc;
2388#else
2389 return stat(zPath, pStatBuf);
2390#endif
2391}
2392
2393/*
2394** This function is used in place of lstat(). On Windows, special handling

Callers 2

makeDirectoryFunction · 0.85
writeFileFunction · 0.85

Calls 2

statTimesToUtcFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected