import os
def allfiles(path):
res = []
for root, dirs, files in os.walk(path):
rootpath = os.path.join(os.path.abspath(path), root)
for file in files:
filepath = os.path.join(rootpath, file)
if (file.find('식단')is not -1):
res.append(filepath)
return res
if __name__ == '__main__':
print(allfiles("C:\\Users\\YunHo\\Desktop"))