anyfs-ftp-适配器
AnyFS 的 FTP 适配器
用法
var AnyFS = require ( 'anyfs' ) ;
var Adapter = require ( 'anyfs-ftp-adapter' ) ;
var adapter = new Adapter ( {
host : "localhost" ,
user : "test" ,
pass : "test" ,
port : 3334 ,
} ) ;
var fs = new AnyFS ( adapter ) ;
fs . list ( '/dir' , function ( err , list ) {
console . log ( list ) ;
} ) ;
1