Skip to content

Provide interface method to get actual path/URL on backend? #221

@hagenw

Description

@hagenw

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 actual path depends on the used backend and interface, which means it doesn't seem like a good idea to rely on private methods
  • their might be backends, where we don't can provide a meaningful URL/root path

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions