Closed grimurd closed 7 years ago
Facing the same issue. Did you find any solution to this issue
I directly used the scp2 module and its working great as of now .
It's in this line in the function "SftpUpload.prototype.uploadFiles".\ Please remove the dot in front of remoteFile.
client.upload(file, '.'+remoteFile, function(err){
Please, update your package on NPMJS! It still has that bug!
Please run npm publish
or give me npm publish rights.
npm is now updated
I'm trying to upload to a folder on my server.
The options object looks like this:
However when i upload it goes into my users folder instead of the root folder. So the path looks like this:
/home/user/var/db/www/server.local/htdocs
I've checked and the user has the write permission to the remote folder.
Is there something i'm doing wrong?