Created
December 28, 2021 06:47
-
-
Save Buzovskiy/2bfcf713245f4d7e4c6371b236bfebf2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pathlib | |
import os | |
import shutil | |
BASE_DIR = pathlib.Path(__file__).resolve().parent | |
for image360dir in os.listdir(BASE_DIR / '2021-12-10'): | |
for image in os.listdir(BASE_DIR / '2021-12-10' / image360dir / 'yo/imageslarge'): | |
pathlib.Path(BASE_DIR / 'raw' / image360dir).mkdir(parents=True, exist_ok=True) | |
shutil.copy( | |
BASE_DIR / '2021-12-10' / image360dir / 'yo/imageslarge' / image, | |
BASE_DIR / 'raw' / image360dir / image | |
) | |
print('done: ', image360dir) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment