mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-03 08:43:57 +03:00
19 lines
443 B
Python
19 lines
443 B
Python
|
import os,glob
|
||
|
|
||
|
|
||
|
def get_file_list(top_dir):
|
||
|
for root, dirs, files in os.walk(top_dir):
|
||
|
for dir in dirs:
|
||
|
dirPath = os.path.join(root, dir)
|
||
|
print(f'dirPath = {dirPath}')
|
||
|
|
||
|
for file in files:
|
||
|
filePath = os.path.join(root, file)
|
||
|
print(f'filePath = {filePath}')
|
||
|
|
||
|
|
||
|
def get_dir_list(top_dir):
|
||
|
return os.listdir(top_dir)
|
||
|
|
||
|
def get_file_list(top_dir):
|
||
|
return glob.glob(top_dir)
|