fix double dir name bug
parent
d5e2614842
commit
a025df0943
|
@ -365,7 +365,7 @@ def collect_name_to_dirpath(directory, prefix, suffix, exclude=None):
|
||||||
dirs[:] = [d for d in dirs if d not in exclude]
|
dirs[:] = [d for d in dirs if d not in exclude]
|
||||||
|
|
||||||
if directory != '.':
|
if directory != '.':
|
||||||
dirname = path.join(directory, dirname)
|
dirname = directory
|
||||||
for f in files:
|
for f in files:
|
||||||
if not f.endswith(suffix):
|
if not f.endswith(suffix):
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue