The FTP worker
Redirect upload (write operation) and download (read operation) as local program calling
Usage of ftp-worker:
-hostname string
FTP listen hostname
-port int
FTP listen port
-on-read string
Read operation local hook program
-on-write string
Write operation local hook program
-workdir string
Work directory
-username string
Username (default "user")
-password string
Password (default "pass")
-tls-explicit
Explicit FTPS
-tls-cert-file string
TLS Certificate file
-tls-key-file string
TLS Key file
Equivalent to:
read-hook-program <filename> | <file-content>
Environions:
Field Name | Type |
---|---|
FTP_ACTION |
READ |
FTP_PATH |
file path |
FTP_READ_OFFSET |
integer |
Equivalent to:
<file-content> | write-hook-program <filename>
Environments:
Field Name | Type |
---|---|
FTP_ACTION |
WRITE |
FTP_PATH |
file path |