Skip to content

problem in uploading from local drive #19

Description

@ggaurav84

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions