You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some packages we provided a method to get the actual path of a file on the backend, which might be useful to navigate to the file or download it directly, e.g. audmodel.url().
For the two backends we have at the moment, this can be achieved with (when using an interface that versions files):
Probably the simplest solution would be to add an optional return argument to Backend.put_file(). Backends like FileSystem and Artifactory can use it to return the path on the backend. But other backends, like the SQL backend in the documentation, may also return None.
The other, more complex solution I see, is that we add a method to Backend and Interface that translates a virtual backend path to its "real" path. But again the return value can be Noneas it may not make sense on all backends.
In some packages we provided a method to get the actual path of a file on the backend, which might be useful to navigate to the file or download it directly, e.g.
audmodel.url()
.For the two backends we have at the moment, this can be achieved with (when using an interface that versions files):
FileSystem
:interface.join(interface.backend._root, interface._path_with_version(path, version))
Artifactory
:str(interface.backend.path(interface._path_with_version(path, version)))
This has a few problems though:
The text was updated successfully, but these errors were encountered: