gruntjs / gruntjs/grunt

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

Open
#615 7 comments 0 reactions 0 assignees View on GitHub
Component: fs Status: Ready Type: Bug
Dominant language
JavaScript
Stars
12.2k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start at the grunt.file.copy entry point and inspect how copied files are handled. Check existing copy-related tests before deciding how configuration should express preserving or setting permissions. Done means copied files can preserve permissions or receive explicitly configured permissions, including executable shell scripts, with tests covering the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.