src/scanner.c

changeset 43
104e75d18ede
parent 42
0402b9b41b0a
child 44
9574a181ec26
equal deleted inserted replaced
42:0402b9b41b0a 43:104e75d18ede
130 /* Scan subdirectories */ 130 /* Scan subdirectories */
131 if (!S_ISREG(filelist->st_mode)) { 131 if (!S_ISREG(filelist->st_mode)) {
132 printf("%*s\n", filelist->displayname_len+scanner.spaces, 132 printf("%*s\n", filelist->displayname_len+scanner.spaces,
133 filelist->displayname); 133 filelist->displayname);
134 if (settings->recursive && S_ISDIR(filelist->st_mode)) { 134 if (settings->recursive && S_ISDIR(filelist->st_mode)) {
135 scanDirectory((scanner_t) {filelist->filename, scanner.spaces+1}, 135 lineSum += scanDirectory(
136 settings); 136 (scanner_t) {filelist->filename, scanner.spaces+1}, settings);
137 } 137 }
138 } else { 138 } else {
139 if ((settings->includeSuffixes->count == 0 139 if ((settings->includeSuffixes->count == 0
140 || testSuffix(filelist->displayname, settings->includeSuffixes)) 140 || testSuffix(filelist->displayname, settings->includeSuffixes))
141 && !testSuffix(filelist->displayname, settings->excludeSuffixes)) { 141 && !testSuffix(filelist->displayname, settings->excludeSuffixes)) {

mercurial