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

copy should allow to: . as the destination #33

Open
fwextensions opened this issue Dec 24, 2023 · 0 comments
Open

copy should allow to: . as the destination #33

fwextensions opened this issue Dec 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@fwextensions
Copy link

I tried doing something like this:

  - copy: tmp/README.md
    to: .

But it looks like tmplr was trying to replace the local directory with the file. I'd expect that specifying a path, even just ., would copy the file to that location using its existing name.

I guess there's some ambiguity as to whether ./foo should mean renaming the file to foo or not. I feel like there's some de facto standard in configs like for webpack, but I can't think of it at the moment.

In any case, it would be nice to catch the error and provide a better message than illegal operation on a directory, since I didn't think I was doing anything to a directory.

@loreanvictor loreanvictor added the enhancement New feature or request label Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants