xxxxxxxxxx
import os
# folder path
dir_path = r'E:\\account\\'
# list to store files
res = []
# Iterate directory
for path in os.listdir(dir_path):
# check if current path is a file
if os.path.isfile(os.path.join(dir_path, path)):
res.append(path)
print(res)