valohai / valohai-utils

Python helper library for Valohai
MIT License
2 stars 2 forks source link

Recursively compress output with ** wildcards (fixes #58) #66

Closed JuhaKiili closed 3 years ago

JuhaKiili commented 3 years ago

You can now make calls like:

# relative paths
valohai.outputs('resized').compress("**/*.png", "images.zip", remove_originals=True)

# absolute paths
valohai.outputs('resized').compress("/tmp/foo/**/derp/*.png", "images.zip", remove_originals=True)

And get a meaningful folder structure inside the archive:

train/hello.png
test/jello.png

fixes #58