modal-labs / modal-client

Python client library for Modal
https://modal.com/docs
Apache License 2.0
271 stars 35 forks source link

Relative path writes for volume get #1937

Closed TheQuantumFractal closed 3 months ago

TheQuantumFractal commented 3 months ago

Details

Very small change to support relative paths for volume / nfs get. Strips the remote path up to the first glob if present then computes file output paths relative to this path.

Closes MOD-2204

Backward/forward compatibility checks --- Check these boxes or delete any item (or this section) if not relevant for this PR. - [x] Client+Server: this change is compatible with old servers - [x] Client forward compatibility: this change ensures client can accept data intended for later versions of itself ---