1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-05-07 12:43:05 +00:00

make target asset directory if it doesn't exist

This commit is contained in:
checktheroads 2020-02-15 20:17:28 -07:00
parent 354f789403
commit e8c85a5c6a

View file

@ -268,6 +268,9 @@ def migrate_static_assets(app_path):
target_dir = app_path / "static" / "images"
comparison = dircmp(asset_dir, target_dir, ignore=[".DS_Store"])
if not target_dir.exists():
target_dir.mkdir()
if not comparison.left_list == comparison.right_list:
shutil.copytree(asset_dir, target_dir)
if not comparison.left_list == comparison.right_list: