ignore directories that don't contain any files we care about
This commit is contained in:
parent
669eb37028
commit
b7b989433a
|
@ -266,6 +266,8 @@ class Collator:
|
|||
self.index = 0
|
||||
|
||||
def collate_from_paths(self, srcs):
|
||||
srcs = [src for src in srcs if len(descendant_files_ignore(src, self.exclude)) > 0]
|
||||
|
||||
if len(srcs) == 1 and srcs[0].is_dir():
|
||||
return self.collate_from_paths(ls_ignore(srcs[0], self.exclude))
|
||||
|
||||
|
|
Loading…
Reference in a new issue