Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Upload folder support in files.py #545

Open
gubyb opened this issue Feb 14, 2024 · 0 comments
Open

[FEATURE] Upload folder support in files.py #545

gubyb opened this issue Feb 14, 2024 · 0 comments

Comments

@gubyb
Copy link

gubyb commented Feb 14, 2024

Problem Statement
Being able to work with both files and folders is pretty common pattern. Currently there is an upload method in the files API that supports file by file upload. It would be awesome to point towards a folder instead. This is possible with dbutils cp command from CLI today:
databricks fs cp --recursive ./data dbfs:/Volumes/.... However not supported in the SDK yet either it seems

Proposed Solution
Either make the https://github.com/databricks/databricks-sdk-py/blob/main/databricks/sdk/service/files.py#L668 neutral to files/directories or add a upload folder function that can wrap the the upload file one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant