ilusm.dev

ftp

FTP/SFTP client: connect, list, get, put, delete.

Load with: use ftp

Quick example

use ftp

result = ftpcn("value", 8080, "value")
prn(result)

Functions

Functions

ftpcn(host, port, opts)

Performs the operation. Takes host, port, opts.

ftpau(f, user, pass)

Performs the operation. Takes f, user, pass.

ftpls(f, path)

Lists items. Takes f, path.

ftpgt(f, remote, local)

Performs the operation. Takes f, remote, local.

ftppt(f, local, remote)

Performs the operation. Takes f, local, remote.

ftprm(f, path)

Removes an item. Takes f, path.

ftpmd(f, path)

Performs the operation. Takes f, path.

ftprd(f, path)

Reads data. Takes f, path.

ftpcd(f, path)

Performs the operation. Takes f, path.

ftppw(f)

Performs the operation. Takes f.

ftpmv(f, src, dst)

Performs the operation. Takes f, src, dst.

ftpsz(f, path)

Returns the size or count. Takes f, path.

ftpcl(f)

Closes or clears. Takes f.

Module aliases

These are the public-facing names you call with use ftp:

  • ftp.conn(h, p, o)
  • ftp.auth(f, u, p)
  • ftp.ls(f, p)
  • ftp.get(f, r, l)
  • ftp.put(f, l, r)
  • ftp.rm(f, p)
  • ftp.mkdir(f, p)
  • ftp.cd(f, p)
  • ftp.pwd(f)
  • ftp.mv(f, s, d)
  • ftp.sz(f, p)
  • ftp.cls(f)

Notes

  • FTP client - connect, list, upload, download.