Skip to content

Repository files navigation

Smart Processes Management

NPM versionDownloadsDependency Statuscode style: prettier

FTP executor for Runnerty:

Installation:

npm i @runnerty/executor-ftp

Configuration sample:

{
"id": "ftp_default",
"type": "@runnerty-executor-ftp",
"host": "host.com",
"port": "21",
"username": "user",
"password": "1234"
}
{
"id": "ftp_default",
"type": "@runnerty-executor-ftp",
"host": "host.com",
"port": "21",
"username": "user",
"privateKeyPath": "/privateKeys/myPrivateKey.pem"
}

Notas:

  • Puedes usar username o user en la configuración; internamente se normaliza a username.
  • Si usas autenticación por clave, utiliza privateKeyPath (ruta a fichero PEM) o privateKey (contenido PEM). Si privateKey apunta a un fichero existente, se leerá automáticamente.

Plan sample:

{
"id": "ftp_default",
"command": "PUT",
"sourcePath": "./sample.txt",
"destinationPath": "/remote/sample_file.txt"
}
{
"id": "ftp_default",
"command": "LIST",
"sourcePath": "./remoteDir/"
}

Connection:

Connection config you will see here

Commands

  • get: download a file.
  • put: upload a file.
  • mkdir: create a new directory.
  • rmdir: remove the directory or file.
  • delete: delete file.
  • rename: rename sourcePath to destinationPath.
  • chmod: modify rights to destinationPath file.
  • list: retrieves a directory listing.

Output (Process values):

  • PROCESS_EXEC_DATA_OUTPUT: Response output data.
  • EXTRA_DATA: It is possible to work with the parsed values of the response.

LIST command return a JSON with this properties:

type: // file type(-, d, l)
name: // file name
size: // file size
modifyTime: // file timestamp of modified time
accessTime: // file timestamp of access time
rights: {
user:
group:
other:
},
owner: // user ID
group: // group ID

About

Runnerty module: FTP executor

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages