🐛 create version directory if it doesn't exist

This commit is contained in:
Ondřej Samohel 2022-09-23 15:13:17 +02:00
parent 100fa0ff6e
commit 1e98372f6a
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -804,6 +804,8 @@ class BootstrapRepos:
""" """
version = OpenPypeVersion.version_in_str(zip_file.name) version = OpenPypeVersion.version_in_str(zip_file.name)
destination_dir = self.data_dir / f"{version.major}.{version.minor}" destination_dir = self.data_dir / f"{version.major}.{version.minor}"
if not destination_dir.exists():
destination_dir.mkdir(parents=True)
destination = destination_dir / zip_file.name destination = destination_dir / zip_file.name
if destination.exists(): if destination.exists():