Procedures
Automation procedures in the SFTP book.
Ensure that you have installed or connected the SFTP book and created a new playground before using these automation procedures.
to copy an item to a folder
Copy an item to a folder
Input Concepts
item
The item (file or folder) to copy
sftp file reference or sftp folder reference
Yes
(no default)
conflict behavior
The behavior to use on conflict scenarios. It should be one of the following values: ('fail', 'replace', 'rename')
text
No
fail
Examples
Copy a file on the SFTP server
copy the new file to the copydestination
the conflict behavior is "replace"to create a (folder) in another folder
Create a (folder) in another folder
Input Concepts
folder name
The name of the (folder) to create
text
Yes
(no default)
conflict behavior
The behavior to use on conflict scenarios. It should be one of the following values: ('fail', 'replace', 'rename')
text
No
fail
Output Concepts
Examples
Create a directory on the SFTP server
to delete an item
Delete an item (file or folder)
Input Concepts
item
The item (file or folder) to delete
sftp file reference or sftp folder reference
Yes
(no default)
Examples
Delete a file from the SFTP server
to download a file
Download a file
Input Concepts
Output Concepts
answer
the file as an IO object
file
Examples
Download a file from the SFTP server
to get a (folder) at a path
Gets a reference to a folder.
Input Concepts
path
The path to the folder
text
Yes
(no default)
Output Concepts
Examples
Get a folder at a path.
to get a (root folder)
Gets a reference to the root folder.
Output Concepts
Examples
Get the root folder
to get some (folder's items)
Lists items from a folder reference
Input Concepts
Output Concepts
folder's items
a list of Items (file or folder) containing the items in the folder
sftp file reference or sftp folder reference
Examples
List files in a directory on the SFTP server
List files in a directory on the SFTP server with a filter expression
to move an item to a folder
Move an item to a folder
Input Concepts
item
The item (file or folder) to move
sftp file reference or sftp folder reference
Yes
(no default)
conflict behavior
The behavior to use on conflict scenarios. It should be one of the following values: ('fail', 'replace', 'rename')
text
No
fail
Examples
Move a file on the SFTP server
to rename an item to a name
Rename an item (file or folder) to a given name
Input Concepts
item
The item (file or folder) to rename
sftp file reference or sftp folder reference
Yes
(no default)
name
The new name of the item
text
Yes
(no default)
conflict behavior
The behavior to use on conflict scenarios. It should be one of the following values: ('fail', 'replace', 'rename')
text
No
fail
Examples
Rename a file on the SFTP server
to upload a (file) to a folder
Upload a file to a folder
Input Concepts
file
The file to upload
file
Yes
(no default)
file name
The name of the file to upload
text
Yes
(no default)
conflict behavior
The behavior to use on conflict scenarios. It should be one of the following values: ('fail', 'replace', 'rename')
text
No
fail
Output Concepts
Examples
Upload a file to the SFTP server
Last updated
Was this helpful?
