Skip to content

runnerty/executor-ftp

Repository files navigation

Smart Processes Management

NPM version Downloads Dependency Status code 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",
  "user": "user",
  "password": "1234"
}
{
  "id": "ftp_default",
  "type": "@runnerty-executor-ftp",
  "host": "host.com",
  "port": "21",
  "user": "user",
  "privateKey": "/privateKeys/myPrivateKey.pem"
}

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

Releases

No releases published

Packages

No packages published