grunt-contrib-copy icon indicating copy to clipboard operation
grunt-contrib-copy copied to clipboard

Add mtimeUpdate parameter

Open MeoMix opened this issue 10 years ago • 4 comments

Currently, when copying a file from src to dest with grunt-contrib-copy the last modified time of the file is not updated.

It would be nice to have the ability to force updating this value as to play nice with grunt:newer. See: https://github.com/tschaub/grunt-newer/issues/84

This PR introduces a new option to, mtimeUpdate which, if set to true, will force the copied file's mtime to be set to the current time.

MeoMix avatar Sep 03 '15 22:09 MeoMix

Any reason for closing without discussion?

MeoMix avatar Mar 04 '16 20:03 MeoMix

Hey @MeoMix could you rebase this PR and add documentation for the options under docs/ ?

vladikoff avatar Mar 04 '16 20:03 vladikoff

Sure. I'll try and take a look at it this weekend to ensure it's still necessary/useful. Thanks!

MeoMix avatar Mar 04 '16 20:03 MeoMix

It took me a lot of time to notice that the mtime was not modified and I wanted to know why the Makefile was running the task multiple times. It is quite sad to see that a PR existed to fix this but was not merged more than 4 years later.

leszekhanusz avatar Nov 20 '20 18:11 leszekhanusz