from os import listdir
from pathlib import Path
dir_start: Path = "D:\Media\Movies"
for f in listdir(dir_start):
print(f)
Last active
January 21, 2023 06:28
-
-
Save wcDogg/04519e00fa28996750885219054237ef to your computer and use it in GitHub Desktop.
An OS-agnostic way to list files in a directory using Python.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment