environment_controller = client.environment
EnvironmentController
- Get Default Directory Browser
- Get Directory Contents
- Get Drives
- Get Network Shares
- Get Parent Path
- Validate Path
Get Default directory browser.
def get_default_directory_browser(self)
DefaultDirectoryBrowserInfoDto
result = environment_controller.get_default_directory_browser()
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Gets the contents of a given directory in the file system.
def get_directory_contents(self,
path,
include_files=False,
include_directories=False)
Parameter | Type | Tags | Description |
---|---|---|---|
path |
string |
Query, Required | The path. |
include_files |
bool |
Query, Optional | An optional filter to include or exclude files from the results. true/false. Default: False |
include_directories |
bool |
Query, Optional | An optional filter to include or exclude folders from the results. true/false. Default: False |
path = 'path6'
include_files = False
include_directories = False
result = environment_controller.get_directory_contents(path, include_files, include_directories)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Gets available drives from the server's file system.
def get_drives(self)
result = environment_controller.get_drives()
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
This endpoint is deprecated.
Gets network paths.
def get_network_shares(self)
result = environment_controller.get_network_shares()
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Gets the parent path of a given path.
def get_parent_path(self,
path)
Parameter | Type | Tags | Description |
---|---|---|---|
path |
string |
Query, Required | The path. |
string
path = 'path6'
result = environment_controller.get_parent_path(path)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
Validates path.
def validate_path(self,
body)
Parameter | Type | Tags | Description |
---|---|---|---|
body |
ValidatePathDto |
Body, Required | Validate request object. |
void
body = ValidatePathDto()
result = environment_controller.validate_path(body)
HTTP Status Code | Error Description | Exception Class |
---|---|---|
401 | Unauthorized | APIException |
403 | Forbidden | APIException |
404 | Path not found. | ProblemDetailsException |