morris / vinyl-ftp

Blazing fast vinyl adapter for FTP
Other
388 stars 31 forks source link

Dot files are being ignored #92

Closed rahulv3a closed 7 years ago

rahulv3a commented 7 years ago

I have certain dot files (such as .csscomb, .scss-lint.yml, etc) in my project that I need on my server as well.

My globs are as follows

'./**',
'!./.git/**',
'!./node_modules/**',

All of my project files get transfered successfuly except the dot file. Is this a bug or by design?

niklashigi commented 7 years ago

@rahulnever2far Have you set the dot option of the options object to true? It should look like this:

gulp.src(globsArray, { dot: true })

Replace gulp with fs in case you don't use Gulp.

riklewis commented 7 years ago

I came here to report the same issue, but using the "dot" option worked perfectly.

rahulv3a commented 7 years ago

@shroudedcode thank you. It works fine when dot is set to true.