Upload folder Version 7 (Net)
Action group: FTP
Description
The action uploads the local directory to the FTP server
Action icon
Settings of parameters
Property | Description | Type | Example of filling in | Obligatory to fill in the field |
Parameters | ||||
Context | Unique identifier of the FTP session in the context of which the action will be applied | FTP | FTP context | Yes |
Local directory | Local directory to upload to the FTP server | FolderPath | C:\doc\img | Yes |
Remote directory on the FTP server | Target directory to which the local directory will be uploaded | String | Yes | |
Rewrite | If true, files and subdirectories will be overwritten. Otherwise, no overwriting is performed. The default is false. | Boolean | true | No |
Existing only | If true, load only those files that exist in the destination directory. Otherwise, load all files. The default value is false. Available only with the Rewrite parameter enabled | Boolean | true | No |
Only new | If true, overwrite only newer existing files and all files that are still No. Otherwise, load all files. If "Existing only" is enabled, overwrite only newer existing files, without adding those that are still No. Available only with "Rewrite" enabled | Boolean | true | No |
Exclude | Files to ignore during upload. To specify more than one file, use wild-cards (* or ?) | String | No | |
Include subdirectories | If true, the search is performed inside the current directory and all its subdirectories. If false, the search is performed only within the current directory. The default value is false | Boolean | true | No |
Keep directories structure | If true, save the directory structure equally in the source and target locations. If false, the directory structure is not saved. Available only with the "Include subdirectories" option enabled. Default is false | Boolean | true | No |
Depth | Maximum depth for viewing subdirectories. Use -1 to specify the depth with no limit. Available only with the "Include subdirectories" option enabled | Numeric | No |
Special conditions of use
None.
Example of use
Task
Connect to an FTP server, upload the folder to the server.
Solution
Use the actions “Connect”, “Upload folder”, “Disconnect”.
Implementation
- Assemble a robot scheme consisting of the actions:
- Set the parameters for the "Connect" action.
- Set the parameters for the "Upload folder" action.
- Set the parameters for the "Disable" action.
- Click on the "Start" button in the top panel.
Result
The software robot has completed successfully. The folder is uploaded to the server.