You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And I use node easy-ftp-test.js to run the example code.
But the download process is not successful.
I watch from the FTP server side, it keeps recevicing pwd command, and download is stuck.
What's wrong in the code ?
Thanks for reply.
The text was updated successfully, but these errors were encountered:
I have downloaded the code from the git
`var config1 = {
"host": "XXX",
"port": 21,
"username": "XXX",
"password": "XXX",
"type":"ftp"
};;
var loop = require('easy-loop');
var EasyFTP = require('../main');
var ftp1 = new EasyFTP(config1); //13967.730ms , 148819.925ms
//var ftp1 = EasyFTP.Parallel(config1, 3); // 56392.136ms, 49064.603ms
ftp1.on("open", function(client){
console.log("event open");
console.time("time");
//ftp1.upload("C:/test/images", config1.path, function(err){
ftp1.download("/AAAAAA5EEDF4/VIDEO/2018_0522_095610_001.MP4", "D:/test.MP4", function(err){
console.log(arguments);
console.timeEnd("time");
end();
});
});
ftp1.on("upload", function(){
console.log("event upload", arguments);
});
ftp1.on("download", function(){
console.log("event download", arguments);
});
ftp1.on("error", function(err){
console.log("event error1", err);
end();
});
ftp1.on("close", function(){
console.log("event close1");
});
//ftp1.cd(config1.path, function(){
//});
function end(){
try{ftp1.close();}catch(e){}
}`
And I use node easy-ftp-test.js to run the example code.
But the download process is not successful.
I watch from the FTP server side, it keeps recevicing pwd command, and download is stuck.
What's wrong in the code ?
Thanks for reply.
The text was updated successfully, but these errors were encountered: