Skip to content

Releases: amxts/ftp

Release list

ftp v0.1.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 06:21

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