pathlib get list of files

186

pathlib get list of files -

for path in pathlib.Path(".").iterdir():
    if path.is_file():
        print(path)

Comments

Submit
0 Comments