UNPKG

ftp-srv-esm

Version:

Modern, extensible FTP server (daemon) for Node.js with ESM support. Based on ftp-srv.

15 lines (14 loc) 378 B
export default { directive: 'ABOR', handler: function () { return this.connector.waitForConnection() .then((socket) => { return this.reply(426, {socket}) .then(() => this.reply(226)); }) .catch(() => this.reply(225)) .then(() => this.connector.end()); }, syntax: '{{cmd}}', description: 'Abort an active file transfer' };