loxaxs
5
Q:

os.listdir to array

from os import listdir
from os.path import isfile, join
files = [file for file in listdir(path) if isfile(join(path, file))]
0

Tags

New to Communities?

Join the community