node-ftps icon indicating copy to clipboard operation
node-ftps copied to clipboard

stdout is also in res.error - data is null

Open nosteine opened this issue 8 years ago • 1 comments

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)
        }
    });

nosteine avatar Jan 01 '18 11:01 nosteine

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)

mirite avatar Oct 08 '22 18:10 mirite