Create FTP Connection
Command description
Creates an FTP or SFTP file server connection and returns the connection object. This connection object is required for subsequent FTP operations.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Server Type | enum | Optional values: FTP Server, SFTP Server |
| FTP Server Address | str | File server IP address or domain name |
| FTP Server Port | int or str | File server port, default 21 |
| Enable Active Mode | bool | Whether to enable FTP active connection, not enabled by default |
| Username | str | File server login account |
| Password | str | File server login password |
| Connection Timeout | number or str | Timeout for connecting to the server, in seconds |
Command Output Parameters
| Output parameters | Output parameter type | Description |
|---|---|---|
| FTP Connection Object | FtpConnection | Created FTP/SFTP connection object |
Generation Notes
- Output FTP connection object; subsequent FTP commands pass this object.
- SFTP usually uses port 22, and FTP usually uses port 21.