MakeDir
Summary
Use the MakeDir
function to create directories and subdirectories on the Connect file system.
Syntax
MakeDir(Directory='<unix_style_directory_path>') |
Parameters
Parameter | Description |
---|---|
unix_style_directory_path |
(Required) A unix style directory path. The parameter can contain a list of directories delimited by a ‘/’. The command will create any new directories in the path. The command will not overwrite the content of directories that already exist. It is unnecessary to explicitly use ‘/’ to denote the root directory. |
Details
When executed, the command will return a single row result set.
Column Name | Data Type | Description |
---|---|---|
status_code | string | Returns ‘0’ for success, ‘1’ for failure |
status_message | string | ‘ok’ indicates the directory was created successfully. |
name | string | The name of the directory path created. |
command | string | ‘MakeDir’ |
count | integer | n/a |
value | string | n/a |
exception_message | string | Any exception messages thrown if an error occurred. |
The Connect file system works in conjunction with the file system on Xactly’s SFTP server, connectftp.xactlycorp.com
. An SFTP account is not required to use Connect’s file functions. You can access the Connect’s file system two ways:
- By using Connect’s other xCL file functions (listed below)
- Via an SFTP client connected to Xactly’s SFTP server,
connectftp.xactlycorp.com
. Xactly’s Customer Support team can setup SFTP account access for your business. Connect cannot access third party SFTP servers.
MakeDir’s root directory is the home directory of your business’ SFTP account.
Examples
call MakeDir(Directory=’/tmp/mytemp/mysecondtemp’);
call MakeDir(Directory=’inbound_files’);
Related Functions