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

Use filename if not provided when doing dataset copying #158

Open
imrehg opened this issue Feb 25, 2020 · 0 comments
Open

Use filename if not provided when doing dataset copying #158

imrehg opened this issue Feb 25, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@imrehg
Copy link
Member

imrehg commented Feb 25, 2020

A file put with datasets.put of a single file needs explicit filename in the path, but should be able to use the existing file name for smarter uploads.

Eg. a call like

dataset.put("/project/data.csv", "/somefolder/")

results in /somefolder/ being created (if it doesn't exists), but no file uploaded there. I think if done smartly that above should be equivalent to explicitly writing

dataset.put("/project/data.csv", "/somefolder/data.csv")

which is just getting the current file name and adding to the end of the path, if not provided.

If that auto filename is not desirable for some reason then the upload should at least error out, otherwise confusing that things succeed and nothing is copied.

@imrehg imrehg added the enhancement New feature or request label Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant