Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to copy hidden folders? #34

Open
ashishnumino opened this issue Oct 13, 2017 · 4 comments
Open

How to copy hidden folders? #34

ashishnumino opened this issue Oct 13, 2017 · 4 comments

Comments

@ashishnumino
Copy link

i have the following directory stucture:

--dist
--------- **.ebextension** [folder]
--------- index.html [file]
--------- other files [files]

All my other files except .ebextension gets copied.

@Toilal
Copy link

Toilal commented Nov 8, 2018

const globOptions = {
nodir: !options.includeEmptyDirs,
silent: true,
follow: Boolean(options.dereference),
nosort: true,
}

https://github.com/isaacs/node-glob/blob/master/README.md#dots

Sadly there's no option to pass dot: true to glob.

@flybayer
Copy link

This glob pattern is working for me to include dot files: "templates/**/{.*,*}"

@JuanM04
Copy link

JuanM04 commented Mar 30, 2021

If someone needs a solution (after three years), I just created a fork with --include-hidden

@psulek
Copy link

psulek commented Aug 5, 2022

This glob pattern is working for me to include dot files: "templates/**/{.*,*}"

What pattern should i use to copy files with dot at begin (like .eslintrc) and folders (like .vscode) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants