noodny / node-ftp-client

MIT License
64 stars 32 forks source link

Upload ignores dot files #7

Open nine-2-five opened 8 years ago

nine-2-five commented 8 years ago

Upload ignores dot files (.htaccess) when called like this:

ftpClient.upload([commit_dir + '/' + diffs.commit + '/**'], '/public_html/repos/isvaljek/slick', {
            baseDir: commit_dir + '/' + diffs.commit,
            overwrite: 'all'
        },
nine-2-five commented 7 years ago

If anyone else bumps into this, one solution would be to use the first upload parameter as an array of both all files and all dotfiles glob lookups: ftpclient.upload([ path+'/**', path + '/.**' ])

Note the dot before ** in the second array element, this array will combine all files under path and all dot files under path.