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

cant copy the file beginning with '.' #214

Open
yeahzgit opened this issue Dec 25, 2017 · 1 comment
Open

cant copy the file beginning with '.' #214

yeahzgit opened this issue Dec 25, 2017 · 1 comment

Comments

@yeahzgit
Copy link

writing() {
this.fs.copy(
this.templatePath('.'),
this.destinationPath('')
);
}

@SBoudrias
Copy link
Member

SBoudrias commented Dec 26, 2017

Is your file named .? I don't think this will work because it's ambiguous as what the meaning is from the file system perspective (folder or file?)

If it's not the case, npm ignore some dotfiles by default, so make sure your dotfile is published with your project.

If you can't find the root cause, the easiest way is to replace the character and rename during copy operation:

this.fs.copy(
  this.templatePath('_gitignore'),
  this.destinationPath('.gitignore')
);

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

2 participants