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

Unable to copy file with different name #128

Open
abhinath84 opened this issue Aug 4, 2023 · 0 comments
Open

Unable to copy file with different name #128

abhinath84 opened this issue Aug 4, 2023 · 0 comments

Comments

@abhinath84
Copy link

abhinath84 commented Aug 4, 2023

I'm using copyfiles cli in my node.js project. But I'm facing issue while I'm trying to copy file with another name. command creates a folder with .env name & copy source file on that newly created folder. But I want to copy source file to destination folder (mentioned in command argument) with another name.
I'm trying following:
npx copyfiles ./.env.template ./.env

Expected behavior: above command will create a new file with name .env & copy all the content of .env.template to it.

Please help me on:

  • copy file with another name is not supported.
  • it's supported & my syntax is wrong. If so, what would be the correct syntax.
  • it's a bug.
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

1 participant