File Browser¶
Table of Contents
Obtaining Access to the Gateway’s File System¶
filer = Gateway('vGateway-0dbc')
filer.login('USERNAME', 'PASSWORD')
file_browser = filer.files # the field is an instance of FileBrowser class object
Download¶
-
FileBrowser.
download
(path) Download a file
Parameters: path (str) – The file’s path on the gateway
file_browser.download('cloud/users/Service Account/My Files/Documents/Sample.docx')
Create Directory¶
-
FileBrowser.
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
file_browser.mkdir('cloud/users/Service Account/My Files/Documents')
file_browser.mkdir('cloud/users/Service Account/My Files/The/quick/brown/fox', recurse = True)