Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

runnerty/executor-ftp

Open more actions menu

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",
  "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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.