Service: zimbraAdmin

Command: CheckDirectory
Namespace: urn:zimbraAdmin
Description: Check existence of one or more directories and optionally create them.
Properties:
Authorization token required true
Admin Authorization token required true

CheckDirectoryRequest

    <CheckDirectoryRequest> ## CheckDirectoryRequest
        (<directory path="{full-path}" [create="{create-if-nec-flag} (0|1)"] /> ## CheckDirSelector)*
    </CheckDirectoryRequest>

elements and attributes you can define within a <CheckDirectoryRequest> element:

XPath Required / Optional Description
/directory Optional (0 or more) Directories
/directory@path Required (only 1) Type: String
Full path to the directory
/directory@create Optional (0 or 1) Type: 0|1
Whether to create the directory or not if it doesn't exist

CheckDirectoryResponse

    <CheckDirectoryResponse> ## CheckDirectoryResponse
        (<directory path="{path}" exists="{path-exists} (0|1)" isDirectory="{path-is-directory} (0|1)"
                        readable="{path-is-readable} (0|1)" writable="{path-is-writable} (0|1)" /> ## DirPathInfo)*
    </CheckDirectoryResponse>

elements and attributes you can define within a <CheckDirectoryResponse> element:

XPath Required / Optional Description
/directory Optional (0 or more) Information for directories
/directory@path Required (only 1) Type: String
Path
/directory@exists Required (only 1) Type: 0|1
Flag whether exists
/directory@isDirectory Required (only 1) Type: 0|1
Flag whether is directory
/directory@readable Required (only 1) Type: 0|1
/directory@writable Required (only 1) Type: 0|1