Spaces:
Sleeping
Sleeping
File size: 248 Bytes
46917c3 |
1 2 3 4 5 6 7 8 9 10 11 |
import os
def get_filenames_from_dir(directory_path: str) -> list:
filenames = [
f
for f in os.listdir(directory_path)
if os.path.isfile(os.path.join(directory_path, f)) and f != ".DS_Store"
]
return filenames
|