Skip to content

API for creating a cloud file by uploading it #58

@pjbull

Description

@pjbull

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions