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")
We have
download_toto make it easy to copy a file from the cloud to the local filesystem. We don't have an equivalentuploadorupload_fromorcopy_from(naming is hard) method to easily create a cloud file from a local one.E.g