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)) { |