Download folder_structure_understanding.py from PranavRaut0902/DataOfParakeetTraining: direct link, hf CLI and curl.
- Browser
- Download file 378 Bytes
-
https://huggingface.co/datasets/PranavRaut0902/DataOfParakeetTraining/resolve/main/folder_structure_understanding.py
- Command line
-
hf download hf://datasets/PranavRaut0902/DataOfParakeetTraining/folder_structure_understanding.py
-
curl -L -o folder_structure_understanding.py https://huggingface.co/datasets/PranavRaut0902/DataOfParakeetTraining/resolve/main/folder_structure_understanding.py
378 Bytes
| import os | |
| root_folder = r"C:\Users\PranavRautRadpicsAI\Desktop\data" | |
| with open("dataset_structure.txt", "w", encoding="utf-8") as out: | |
| for root, dirs, files in os.walk(root_folder): | |
| relative = os.path.relpath(root, root_folder) | |
| out.write(f"\n[{relative}]\n") | |
| for file in sorted(files): | |
| out.write(f"{file}\n") | |
| print("Done") |