-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
Keep exec mode on file copy #235
Comments
And if exec mode is kept, it would be nice to add a specific color during the copy process on the shell to show executables that have been copied :) |
I think copying modes should be the default. Looking into it. |
@passy here too I think it should be modeled after the grunt.file.copy method. |
@sindresorhus Looks like grunt.file.copy doesn't retain the file permissions. :/ |
Thanks for this feature added to yeoman. |
I close as @passy has done the appropriate PR |
what's the solution here? |
Hello,
I'm using
this.copy("fromFile.sh", "toFile.sh")
to copy a file which has 0755 as chmod on a Linux.This chmod is lost on the copy and not applied to
toFile.sh
Why not adding a third param
keepMode
toactions.copy
andactions.template
, to tell to keep or not the mode?Or maybe keep the mode by default (espacially the +x mod, if it applies to current OS) ?
The text was updated successfully, but these errors were encountered: