fix a bug in list_files_with_name
This commit is contained in:
parent
ac08562854
commit
893191cab2
|
@ -140,7 +140,7 @@ def list_files_with_name(filename):
|
|||
continue
|
||||
|
||||
path = os.path.join(dirpath, filename)
|
||||
if os.path.isfile(filename):
|
||||
if os.path.isfile(path):
|
||||
res.append(path)
|
||||
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue