Full path: /system/sftp/store-wildcard
Uploads files from a local directory to the SFTP server if the files match a wildcard (e.g., *.xml). This function returns a list of strings with the uploaded local file names if the execution has been successful. Otherwise, the outcome depends on the Abort on error parameter (see details below).
Name |
Type |
Description |
---|---|---|
SFTP Connection |
SFTP Connection |
Mandatory parameter. This is a FlowForce object that establishes an SFTP connection. To get the SFTP connection object, call the /system/sftp/connect function first, in a separate execution step. |
Wildcard |
string |
Mandatory parameter. Specifies a wildcard, for example, *.xml. Any files matching the wildcard will be uploaded to the SFTP server. See also Wildcards in SFTP functions. |
Target directory |
string |
Mandatory parameter. Specifies the directory name on the remote system to which files will be uploaded. If you specify a relative path, it will be resolved against the working directory. If you use an absolute path, the path specified in the Working directory parameter will not be used. |
Overwrite target |
boolean |
Optional parameter. Set this parameter to true if destination files with the same names should be overwritten. The default value is false. |
Abort on error |
boolean |
Optional parameter. If job execution fails and the Abort on error parameter is set to true, the job execution will be aborted. The default value is true. |
Working directory |
string |
Specifies the working directory against which all local relative paths will be resolved. |