cterasdk.edge.files.browser module¶
-
class
cterasdk.edge.files.browser.FileBrowser(Gateway)¶ Bases:
objectGateway File Browser APIs
-
delete(path)¶ Delete a file
Parameters: path (str) – The file’s path on the gateway
-
download(path)¶ Download a file
Parameters: path (str) – The file’s path on the gateway
-
download_as_zip(cloud_directory, files)¶ Download a list of files and/or directories from a cloud folder as a ZIP file
Warning
The list of files is not validated. The ZIP file will include only the existing files and directories
Parameters: - cloud_directory (str) – Path to the cloud directory
- files (list[str]) – List of files and/or directories in the cloud folder to download
-
static
ls(_path)¶
-
mkdir(path, recurse=False)¶ Create a new directory
Parameters: - path (str) – The path of the new directory
- recurse (bool,optional) – Create subdirectories if missing, defaults to False
-
static
mkpath(path)¶
-
upload(file_path, server_path)¶ Upload a file
Parameters: - file_path (str) – Path to the local file to upload
- server_path (str) – Path to the directory to upload the file to
-