Commit 4e0f6773 authored by Leon Pyka's avatar Leon Pyka
Browse files

push_data now creates the dir it pushes to

parent 3e601258
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ def push_data_to(destination):
    current_path = Path(os.getcwd())
    destination_dir = Path(destination)
    if not destination_dir.exists():
        raise AssertionError(f"dir {destination} not found")
        os.makedirs(destination)
    for file in current_path.glob("*.h5"):
        shutil.move(file.name, f'{destination_dir}/{file.name}')
    write_metadata()