audeering / audbackend

Manage file storage on different backends
https://audeering.github.io/audbackend/
Other
3 stars 0 forks source link

Copy / move file to different version? #212

Open hagenw opened 3 months ago

hagenw commented 3 months ago

We have copy_file() and move_file() for audbackend.interface.Versioned and audbackend.interface.Maven. But in both cases it is only possible to copy/move a file to the same version it was originally stored with. One can still achieve the desired result by first downloading it and then uploading it again, but the idea behind move_file() and copy_file() was to avoid this.

frankenjoe commented 3 months ago

Yes that makes sense. I guess the simplest solution would you like to drop the option to copy / move all versions of a file and introduce version_src as a mandatory argument and have version_dst as an optional argument.

hagenw commented 3 months ago

I also like the option to copy/move all versions of a file at once. I would propose the following:

This would have also the advantage that we can stick with the current solution for now and add version_dst only if we need it at a later stage without breaking any API.

frankenjoe commented 2 months ago

Yes, sounds good to me.