zodiac icon indicating copy to clipboard operation
zodiac copied to clipboard

Skip hidden directories

Open ghost opened this issue 10 years ago • 5 comments

Prevent zodiac from parsing and copying hidden directories like .git and .zod

ghost avatar Nov 08 '14 11:11 ghost

Could you update your PR to replace line 14 with .* and removing the changes you made to find_cmd.awk?

nuex avatar Nov 09 '14 14:11 nuex

Mmm... but that would not prevent zodiac from copying hidden directories and their content to the target dir.

ghost avatar Nov 09 '14 16:11 ghost

Did you try it? I just did using the example/site in the repo and it works for me.

nuex avatar Nov 10 '14 00:11 nuex

EDIT: Yes, I tried it and any hidden directory with some files in it get copied. Adding *. to the [ignore] section in the config file doesn't solve the problem because find ! -name matches to the base name of the file which is the file path without the leading directories. The simplest solution is to add a hard-coded expression in find_cmd.awk to skip everything that starts with a dot.

ghost avatar Nov 10 '14 16:11 ghost

This would be very handy to ignore every .* for me. I could use it to make a .site dir a bit like jekyll _site. The .site would be my a repository pointing to username.github.io.

But the solution you provided in your example is also great and is the one I use for now.

By the way, I must really thank you for providing all the feature from jekyll with the minimal approach of a set of bash and awk scripts. Unfortunately, I can only set one star.

ghost avatar Feb 01 '16 22:02 ghost