atinux / node-ftps

FTP, FTPS and SFTP client for node.js, mainly a lftp wrapper.
MIT License
202 stars 57 forks source link

stdout is also in res.error - data is null #61

Open nosteine opened 6 years ago

nosteine commented 6 years ago

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)
        }
    });
mirite commented 1 year ago

I have the same issue with addFile and put, but only on Windows, WSL seems to work correctly (res.error is null and res.data is an empty string)