noodny / node-ftp-client

MIT License
64 stars 32 forks source link

Removing first character at remote file name #5

Open sudomf opened 8 years ago

sudomf commented 8 years ago

Hi, when I execute this script, the result on server is a file without first character.

client.connect(function () {
    client.upload(['../dist/win/setup/*.exe'],
        settings.ftp.dest,
        {
            baseDir: '../dist/win/setup/'
        }, function (result) {
            console.log(result);
        });
});
sudomf commented 8 years ago

Eg: if my local file have a name like Awesomefile.exe, on the server it will be wesomefile.exe.

little1993 commented 8 years ago

you can try to change your baseDir from '../dist/win/setup/' to '../dist/win/setup', remove the last slush