Procedures

Automation procedures in the SFTP book.

The following documentation is for SFTP v1.4.10 (BDK).

to copy an item to a folder

Copy an item to a folder

Input Concepts

Concept
Description
Type
Required
Default Value

item

The item (file or folder) to copy

sftp file reference or sftp folder reference

Yes

(no default)

The folder to copy the item to

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

Concept
Description
Type
Required
Default Value

The folder to create the (folder) in

sftp folder reference

Yes

(no default)

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

Concept
Description
Type

a folder reference to the created folder

sftp folder reference

Examples

Create a directory on the SFTP server

to delete an item

Delete an item (file or folder)

Input Concepts

Concept
Description
Type
Required
Default Value

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

Concept
Description
Type
Required
Default Value

The file reference to the file to download

sftp file reference

Yes

(no default)

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

path

The path to the folder

text

Yes

(no default)

Output Concepts

Concept
Description
Type

a folder reference

sftp folder reference

Examples

Get a folder at a path.

to get a (root folder)

Gets a reference to the root folder.

Output Concepts

Concept
Description
Type

a folder reference

sftp folder reference

Examples

Get the root folder

to get some (folder's items)

FILTER - CAPABLE

Lists items from a folder reference

Input Concepts

Concept
Description
Type
Required
Default Value

The folder reference from which to list the items

sftp folder reference

Yes

(no default)

Output Concepts

Concept
Description
Type

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

Concept
Description
Type
Required
Default Value

item

The item (file or folder) to move

sftp file reference or sftp folder reference

Yes

(no default)

The folder to move the item to

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

Concept
Description
Type
Required
Default Value

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

Concept
Description
Type
Required
Default Value

file

The file to upload

file

Yes

(no default)

The folder to upload the file to

sftp folder reference

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

Concept
Description
Type

a file reference to the uploaded file

sftp file reference

Examples

Upload a file to the SFTP server

Last updated

Was this helpful?