noodny / node-ftp-client

MIT License
64 stars 32 forks source link

problem in uploading from local drive #19

Open ggaurav84 opened 6 years ago

ggaurav84 commented 6 years ago

Hi,

I am facing a problem please help:

I am able to download anything kept on ftp server to any directory (I mean any drive) in my system but when I try to upload from any directory (any drive) to ftp server it automatically uses current working directory (cwd) instead of the path I provided.

There may be chances that I may be giving the wrong path, so below is my code:

------ Download ------ client.download('.', 'I:myFolder/', { overwrite: 'older' }, function(result) { console.log(result); });

------ Upload ------ client.upload(['*'], '.', { baseDir: 'I:myFolder/', overwrite: 'older' }, function(result) { console.log(result); });

An early reply would be highly appreciated.

Thanks in advance.