How do I copy a templated folder only? #1790
Unanswered
ferreteleco
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Thanks for asking, @ferreteleco! 👍 This looks like a bug according to my quick debugging. I'll look into it. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I'm testing the "exclude functionality of copier to copy a single file or folder, as told in Copier Documentation:
copier copy --exclude '*' --exclude '!file-i-want' ./template ./destinationSo far im using a simple demonstration template:
And the related copier.yml:
Trying to copy only the file `script.py' is all good with the following:
But I cant get it to work to copy only init.py (inside {{project_name}}) or {{project_name}} itself. It does not fail, but gives zero information and does not copy anything. Any tip or hint?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions