Este conteúdo não está disponível no idioma selecionado.
35.2. createOrUpdatePath
- Name
- createOrUpdatePath
- Description
- Create a new file (text or binary) or directory with the given path, or update an existing path on a server.Available since: 10.2
- Parameters
- string sessionKey
- int serverId
- string path - the configuration file/directory path
- boolean isDir
- True - if the path is a directory
- False - if the path is a file
 
- struct - path info- stringcontents- Contents of the file (text or base64 encoded if binary) ((only for non-directories)
- booleancontents_enc64- Identifies base64 encoded content (default: disabled, only for non-directories).
- stringowner- Owner of the file/directory.
- stringgroup- Group name of the file/directory.
- stringpermissions- Octal file/directory permissions (eg: 644)
- stringmacro-start-delimiter- Config file macro end delimiter. Use null or empty string to accept the default. (only for non-directories)
- stringmacro-end-delimiter- Config file macro end delimiter. Use null or empty string to accept the default. (only for non-directories)
- stringselinux_ctx- SeLinux context (optional)
- intrevision- next revision number, auto increment for null
- booleanbinary- mark the binary content, if True, base64 encoded content is expected (only for non-directories)
 
- int commitToLocal
- 1 - to commit configuration files to the system's local override configuration channel
- 0 - to commit configuration files to the system's sandbox configuration channel
 
 
- Return Value
- struct - Configuration Revision information- stringtype
- file
- directory
- symlink
 
- stringpath- File Path
- stringtarget_path- Symbolic link Target File Path. Present for Symbolic links only.
- stringchannel- Channel Name
- stringcontents- File contents (base64 encoded according to the contents_enc64 attribute)
- booleancontents_enc64- Identifies base64 encoded content
- intrevision- File Revision
- dateTime.iso8601creation- Creation Date
- dateTime.iso8601modified- Last Modified Date
- stringowner- File Owner. Present for files or directories only.
- stringgroup- File Group. Present for files or directories only.
- intpermissions- File Permissions (Deprecated). Present for files or directories only.
- stringpermissions_mode- File Permissions. Present for files or directories only.
- stringselinux_ctx- SELinux Context (optional).
- booleanbinary- true/false , Present for files only.
- stringsha256- File's sha256 signature. Present for files only.
- stringmacro-start-delimiter- Macro start delimiter for a config file. Present for text files only.
- stringmacro-end-delimiter- Macro end delimiter for a config file. Present for text files only.