pirumpi / sftp-upload

Allow to upload the content of a folder to a remote server through SFT utilizing pure Javascript.
40 stars 21 forks source link

Copy Single file #2

Closed prabhash1785 closed 6 years ago

prabhash1785 commented 9 years ago

Can this module be used to copy one file instead of the whole directory? I tried to copy one file to remote server but I got error saying source is not a directory.

pirumpi commented 9 years ago

That is a good question. Right now it does not work that way but I could add a file parameter that takes an array with specific files within a folder. Would that solution work for you?

prabhash1785 commented 9 years ago

Yeah that would work. Thanks!

pirumpi commented 9 years ago

I'll be pushing a commit soon to address this issue

nguyenchr commented 9 years ago

+1 on this enhancement

bnetter commented 9 years ago

+1 on this too ! thanks

William-Olson commented 7 years ago

+1