Skip to content

Instantly share code, notes, and snippets.

@Buzovskiy
Created December 28, 2021 06:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Buzovskiy/2bfcf713245f4d7e4c6371b236bfebf2 to your computer and use it in GitHub Desktop.
Save Buzovskiy/2bfcf713245f4d7e4c6371b236bfebf2 to your computer and use it in GitHub Desktop.
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