Is there a way to list the files (not directories) in a directory with Python? I know I could use os.listdir and a loop of os.path.isfile()s, but if th
os.listdir
os.path.isfile()
files = next(os.walk('..'))[2]