copy method copies a file or folder.
create_folder method creates a file or folder.
delete method deletes specified file or folder.
download_url method retrieves the download URL that you can use to download a file.
# get a download URL by path url = cloud.download_url(path='/path/to/file'); # get a download URL from by passing a CloudFile object url = cloud.download_url(file=cloud_file) # get a download URL directly from a CloudFile object url = cloud_file.download_url() ``` ## File Upload [`upload`](../../Python_Reference/Cloud/) method allows you to upload a file. **Code Sample** ```python # upload a file that is already opened local_file = open('sample-files/some-file.txt', 'rb') file_uploaded = cloud.upload(local_file, '/VZMOBILE/destination/folder') # upload a file from a path file_uploaded = cloud.upload('sample-files/some-file.txt', '/VZMOBILE/destination/folder')
You can call
fullview method to download the information on all files and folders within a user’s Personal Cloud Storage account.
The following code samples show calls to
fullview API with and without an etag.
files, empty_folders, etag, deleted = fullview()
new_files, new_empty_folders, new_etag, new_deleted = fullview(etag)
move method moves a file or folder.
moved_file = cloud.move('/path/to/source', '/path/to/destination')
rename]() method renames a file or folder.
renamed_file = cloud.rename('/path/to/source', '/path/to/destination')
Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.