grunt icon indicating copy to clipboard operation
grunt copied to clipboard

Support for setting preserving and setting permissions of files copied with grunt.file.copy

Open lazd opened this issue 12 years ago • 7 comments

When copying a file with grunt.file.copy, permissions are not preserved.

In addition, no option is provided to explicitly set permissions of the copied file.

A configuration option for one or both of these would be useful, for instance, when copying a shell script that must be executable.

lazd avatar Jan 11 '13 20:01 lazd

Is this still an open issue? I want to be able to run my grunt copy task and keep the file permissions for executables.

ghost avatar Jun 09 '13 00:06 ghost

I fixed it in this pull request

regular avatar Jun 10 '13 09:06 regular

What's holding this back? Undesirable defaults? Undesirable test strategy? Anything we can help with?

sheldonh avatar Aug 03 '13 10:08 sheldonh

@sheldonh Thanks for the offer for help. It's likely something we should handle in the next version of Grunt to make it available to all tasks. We have the PR left open here gruntjs/grunt#732 and will review. Thank you for that PR @regular!

shama avatar Aug 03 '13 16:08 shama

This is moved to Milestone 0.4.3, sadly not enough time to test this with 0.4.2 properly.

vladikoff avatar Oct 11 '13 16:10 vladikoff

In Grunt 0.4 the suggestion is to use https://github.com/JamesMGreene/grunt-chmod to do this. Pushing issue to 0.5.0

vladikoff avatar Jun 18 '14 17:06 vladikoff

really? No one cares about this?

Uko avatar Feb 14 '19 10:02 Uko