Use os.path.join() in list_file()
This commit is contained in:
parent
3cce5415a4
commit
40b5b80cef
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ def list_file(directory, pattern, recursive):
|
||||||
if os.path.isdir(directory + "/" + i) and recursive:
|
if os.path.isdir(directory + "/" + i) and recursive:
|
||||||
logging.info('directory found : %s', i)
|
logging.info('directory found : %s', i)
|
||||||
files_list.extend(list_file(
|
files_list.extend(list_file(
|
||||||
directory + "/" + i,
|
os.path.join(directory, i),
|
||||||
pattern,
|
pattern,
|
||||||
recursive
|
recursive
|
||||||
))
|
))
|
||||||
|
|
Reference in a new issue