wiz/controller/ftp.js
Luca Jäntsch 0f365e8e01 0001
2019-02-12 16:25:14 +01:00

15 lines
356 B
JavaScript

const {FtpSrv, FileSystem} = require('ftp-srv');
class MyFileSystem extends FileSystem {
constructor(connection, { root, cwd } = {}) {
super(connection, root, cwd);
}
list(path){
return [{name:'test',isDirectory:"false"}]
}
get(fileName) {
console.log(fileName)
}
}
module.exports = {FtpSrv,MyFileSystem};