Differences From Artifact [99f0f9c698]:
- File src/file.c — part of check-in [d7a583e697] at 2010-01-20 20:35:11 on branch trunk — Make the mtime-changes setting the default. Avoid redundant calls to stat(). (user: drh size: 12904)
To Artifact [13be03b540]:
- File src/file.c — part of check-in [1abc8a940e] at 2010-01-20 21:51:56 on branch trunk — Fix a bug in file change detection introduced by check-in [d7a583e697]. Don't use that check-in, nor [30f23e3f5c]. (user: drh size: 12927) [more...]
| ︙ | |||
43 44 45 46 47 48 49 50 51 52 53 54 55 56 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | + |
** Return the number of errors. No error messages are generated.
*/
static int getStat(const char *zFilename){
if( zFilename==0 ){
if( fileStatValid==0 ) return 1;
}else{
if( stat(zFilename, &fileStat)!=0 ) return 1;
fileStatValid = 1;
}
return 0;
}
/*
** Return the size of a file in bytes. Return -1 if the file does not
|
| ︙ |