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

Is there a way to upload a single file? #13

Closed chukwumaokere closed 6 years ago

chukwumaokere commented 6 years ago

Currently it uploads the whole directory passed to the path: property is there a way to make it upload only a single file? I'm using sftp-upload to upload a single file to a remote client. But whenever i add a single file to the directory, the whole directory reuploads, which is just a time consuming process when i have hundreds of files in the directory

jviall commented 6 years ago

Yes! See #2, 973aa1b7a4e555e006eb76950420e2d1e8af689c