Skip to content

[Python API] Have dvc.api.open support directories #7376

@houssam7737

Description

@houssam7737

It would be great to have a dvc.api.open or another method within the python api support downloading entire directories (like dvc get supports both files and directories).

That abstraction would be pretty useful to me right now, and would save some time. It's not clear to me how to achieve this right now in python without using subprocess to use dvc in the shell (I can't assume the repo is already present locally, so os.listdir is a no go if repo is remote only).

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: apiRelated to the dvc.apifeature requestRequesting a new featurep3-nice-to-haveIt should be done this or next sprint

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions