Skip to content

api: get_url does not support links for granular file  #3180

@skshetry

Description

@skshetry

get_url does not support granular files access.

Eg:

mkdir dir
echo "foo" > dir/file

dvc add foo
python -c '
import dvc.api
dvc.api.get_url("dir/file"
'

throws following exception:

OutputNotFoundError: unable to find DVC-file with output 'dir/file'

This also affects #3156 which introduces dvc get --show-url.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequesting a new featurep2-mediumMedium priority, should be done, but less important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions