wiz/controller/ftp.js

15 lines
356 B
JavaScript
Raw Normal View History

2019-02-12 16:25:14 +01:00
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};