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

API for creating a cloud file by uploading it #58

Closed
pjbull opened this issue Aug 30, 2020 · 1 comment · Fixed by #125 or #142
Closed

API for creating a cloud file by uploading it #58

pjbull opened this issue Aug 30, 2020 · 1 comment · Fixed by #125 or #142
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pjbull
Copy link
Member

pjbull commented Aug 30, 2020

We have download_to to make it easy to copy a file from the cloud to the local filesystem. We don't have an equivalent upload or upload_from or copy_from (naming is hard) method to easily create a cloud file from a local one.

E.g

# path that does not exist yet
p = CloudPath("az://container/dir/new_file.txt")

#  copies "my_local_text_file.txt" to the path specified by p
p.upload("my_local_text_file.txt")
@pjbull pjbull added the enhancement New feature or request label Oct 2, 2020
@jayqi jayqi added good first issue Good for newcomers hacktoberfest labels Oct 4, 2020
@jayqi
Copy link
Member

jayqi commented Nov 15, 2020

I like upload_from. It has symmetry with download_to. We also want to distinguish uploading a local file vs. copying from another cloud path (#108).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
2 participants