Skip to content

ftp v0.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 04 Oct 06:21
· 1 commit to main since this release

The first release: FTP, FTPS and SFTP for amxts plugins. Upload, download and list files on another server; every call is a promise on amxts's network thread, so the game never waits, and files go between the game folder and the other server whole, binary included.

import { ftp } from "@amxts/ftp";

const client = await ftp.connect("sftp://backup@example.com", { password: settings.password });
await client.upload("addons/amxmodx/logs/today.log", "logs/today.log");
await client.close();

SFTP takes a password or an RSA key in PEM, and can check the host's key.

❤️ Contributors