This is my code. If I give a wrong (denied) path, the error is in res.error.
However, even if I give the correct path, the result is also in res.error and res.data is null
ftps.cd(defaults.path+ 'dd').addFile('lib/ice_age_box_cover.jpg').exec(function (err, res){
if (res){
logger.debug(res.error)
}
});
This is my code. If I give a wrong (denied) path, the error is in res.error. However, even if I give the correct path, the result is also in res.error and res.data is null