version 1.20, 2009/06/03 15:15:16 |
version 1.21, 2009/08/27 11:29:30 |
|
|
* or directories and this is post-order of the |
* or directories and this is post-order of the |
* root of a traversal, display the total. |
* root of a traversal, display the total. |
*/ |
*/ |
if (listdirs || (!listfiles && !p->fts_level)) |
if (listdirs || |
|
(!listfiles && p->fts_level == FTS_ROOTLEVEL)) { |
prtout((quad_t)howmany(p->fts_number, blocksize), |
prtout((quad_t)howmany(p->fts_number, blocksize), |
p->fts_path, hflag); |
p->fts_path, hflag); |
|
} |
break; |
break; |
case FTS_DC: /* Ignore. */ |
case FTS_DC: /* Ignore. */ |
break; |
break; |
|
|
* If listing each file, or a non-directory file was |
* If listing each file, or a non-directory file was |
* the root of a traversal, display the total. |
* the root of a traversal, display the total. |
*/ |
*/ |
if (listfiles || !p->fts_level) |
if (listfiles || p->fts_level == FTS_ROOTLEVEL) |
prtout(howmany(p->fts_statp->st_blocks, blocksize), |
prtout(howmany(p->fts_statp->st_blocks, blocksize), |
p->fts_path, hflag); |
p->fts_path, hflag); |
p->fts_parent->fts_number += p->fts_statp->st_blocks; |
p->fts_parent->fts_number += p->fts_statp->st_blocks; |