Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Enhance the test-canonical-name command to provide additional file measurement diagnostics. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
7fbaee790a40022986859bf1d9d38fa7 |
| User & Date: | drh 2010-09-18 20:08:09.000 |
Context
|
2010-09-18
| ||
| 21:48 | Use _stati64() rather than stat() on windows, in order to support repositories larger than 2GB. check-in: 293238031f user: drh tags: trunk | |
| 20:08 | Enhance the test-canonical-name command to provide additional file measurement diagnostics. check-in: 7fbaee790a user: drh tags: trunk | |
| 15:51 | Merge in changes from the wolfgangFormat2CSS_2 branch, but with edits. check-in: b48f78964e user: drh tags: trunk, release | |
Changes
Changes to src/file.c.
| ︙ | ︙ | |||
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 |
blob_appendf(pOut, "%//%/", zPwd, zOrigName);
}
blob_resize(pOut, file_simplify_name(blob_buffer(pOut), blob_size(pOut)));
}
/*
** COMMAND: test-canonical-name
**
** Test the operation of the canonical name generator.
*/
void cmd_test_canonical_name(void){
int i;
Blob x;
blob_zero(&x);
for(i=2; i<g.argc; i++){
| > > > | > > > > > | 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 |
blob_appendf(pOut, "%//%/", zPwd, zOrigName);
}
blob_resize(pOut, file_simplify_name(blob_buffer(pOut), blob_size(pOut)));
}
/*
** COMMAND: test-canonical-name
** Usage: %fossil test-canonical-name FILENAME...
**
** Test the operation of the canonical name generator.
** Also test Fossil's ability to measure attributes of a file.
*/
void cmd_test_canonical_name(void){
int i;
Blob x;
blob_zero(&x);
for(i=2; i<g.argc; i++){
const char *zName = g.argv[i];
file_canonical_name(zName, &x);
printf("%s\n", blob_buffer(&x));
blob_reset(&x);
printf(" file_size = %lld\n", file_size(zName));
printf(" file_mtime = %lld\n", file_mtime(zName));
printf(" file_isfile = %d\n", file_isfile(zName));
printf(" file_isexe = %d\n", file_isexe(zName));
printf(" file_isdir = %d\n", file_isdir(zName));
}
}
/*
** Return TRUE if the given filename is canonical.
**
** Canonical names are full pathnames using "/" not "\" and which
|
| ︙ | ︙ |