Skip to content

FTP#

“FTP”节点用于访问 FTP 或 SFTP 服务器并上传文件。

¥The FTP node is useful to access and upload files to an FTP or SFTP server.

Credentials

你可以在 此处 中找到此节点的身份验证信息。

¥You can find authentication information for this node here.

要连接到 SFTP 服务器,请使用 SFTP 凭据。有关更多信息,请参阅 FTP 凭据

¥To connect to an SFTP server, use an SFTP credential. Refer to FTP credentials for more information.

操作#

¥Operations

  • 删除 一个文件或文件夹

¥Delete a file or folder

¥Download a file

¥List folder content

¥Rename or move a file or folder

¥Upload a file

Uploading files

要附加文件进行上传,你需要使用额外的节点(例如 从磁盘读取/写入文件 节点或 HTTP 请求 节点)将文件作为数据属性传递。

¥To attach a file for upload, you'll need to use an extra node such as the Read/Write Files from Disk node or the HTTP Request node to pass the file as a data property.

删除#

¥Delete

此操作包含一个参数:路径。输入要连接的远程路径。

¥This operation includes one parameter: Path. Enter the remote path that you would like to connect to.

删除选项#

¥Delete options

删除操作新增一个选项:文件夹。如果启用此选项,节点可以同时删除文件夹和文件。此配置还显示另一个选项:

¥The delete operation adds one new option: Folder. If you turn this option on, the node can delete both folders and files. This configuration also displays one more option:

  • 递归:如果启用此选项并删除文件夹或目录,节点将删除目标目录中的所有文件和目录。

¥Recursive: If you turn this option on and you delete a folder or directory, the node will delete all files and directories within the target directory.

下载#

¥Download

使用以下参数配置此操作:

¥Configure this operation with these parameters:

  • 路径:输入要连接的远程路径。

¥Path: Enter the remote path that you would like to connect to.

  • 将输出文件放入字段:输入要存放文件的输出二进制字段名称。

¥Put Output File in Field: Enter the name of the output binary field to put the file in.

Concurrent Reads with SFTP

使用 SFTP 时,你可以启用并发读取。这可以提高下载速度,但并非所有 SFTP 服务器都支持。

¥When using SFTP, you can enable concurrent reads. This improves download speeds but may not be supported by all SFTP servers.

列表#

¥List

使用以下参数配置此操作:

¥Configure this operation with these parameters:

  • 路径:输入要连接的远程路径。

¥Path: Enter the remote path that you would like to connect to.

  • 递归:选择是否返回一个表示 FTP/SFTP 服务器中递归找到的所有目录/对象(已启用)或不返回(已禁用)。

¥Recursive: Select whether to return an object representing all directories / objects recursively found within the FTP/SFTP server (turned on) or not (turned off).

重命名#

¥Rename

使用以下参数配置此操作:

¥Configure this operation with these parameters:

  • 旧路径:在此字段中输入你要重命名的文件的现有路径。

¥Old Path: Enter the existing path of the file you'd like to rename in this field.

  • 新建路径:在此字段中输入重命名文件的新路径。

¥New Path: Enter the new path for the renamed file in this field.

重命名选项#

¥Rename options

此操作添加一个新选项:创建目录。如果启用此选项,节点在重命名现有文件或文件夹时将递归创建目标目录。

¥This operation adds one new option: Create Directories. If you turn this option on, the node will recursively create the destination directory when renaming an existing file or folder.

上传#

¥Upload

使用以下参数配置此操作:

¥Configure this operation with these parameters:

  • 路径:输入要连接的远程路径。

¥Path: Enter the remote path that you would like to connect to.

  • 二进制文件:选择上传二进制文件(已开启)或输入要上传的文本内容(已关闭)。其他参数取决于你在此字段中的选择。

¥Binary File: Select whether you'll upload a binary file (turned on) or enter text content to be uploaded (turned off). Other parameters depend on your selection in this field.

  • 输入二进制字段:启用二进制文件后显示。输入包含要在此字段中上传的文件的输入二进制字段名称。

    ¥Input Binary Field: Displayed if you turn on Binary File. Enter the name of the input binary field that contains the file you'll upload in this field.

  • 文件内容:如果你关闭“二进制文件”选项,则会显示此信息。在此字段中输入你要上传的文件的文本内容。

    ¥File Content: Displayed if you turn off Binary File Enter the text content of the file you'll upload in this field.

Uploading files

要附加文件进行上传,你需要使用额外的节点(例如 从磁盘读取/写入文件 节点或 HTTP 请求 节点)将文件作为数据属性传递。

¥To attach a file for upload, you'll need to use an extra node such as the Read/Write Files from Disk node or the HTTP Request node to pass the file as a data property.

模板和示例#

¥Templates and examples

Template widget placeholder.