import glob, os
list = glob.glob('./_InArea/*.tsv')
list.extend(glob.glob('./_OutArea/*.tsv'))
print(list)
# ファイル名だけ取得
print([os.path.basename(r) for r in list])
# 再帰で取得する
def find_all_files(directory):
for root, dirs, files in os.walk(directory):
yield root
for file in files:
yield os.path.join(root, file)
for file in find_all_files('/tmp/test'):
print file