Spaces:
Runtime error
Runtime error
Download scripts/utils/ReadFiles.py from marchji2415/resumematcher: direct link, hf CLI and curl.
- Browser
- Download file 248 Bytes
-
https://huggingface.co/spaces/marchji2415/resumematcher/resolve/main/scripts/utils/ReadFiles.py
- Command line
-
hf download hf://spaces/marchji2415/resumematcher/scripts/utils/ReadFiles.py
-
curl -L -o ReadFiles.py https://huggingface.co/spaces/marchji2415/resumematcher/resolve/main/scripts/utils/ReadFiles.py
248 Bytes
| 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 | |