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

Preserve File Timestamps #98

Closed
guedressel opened this issue Aug 30, 2013 · 9 comments
Closed

Preserve File Timestamps #98

guedressel opened this issue Aug 30, 2013 · 9 comments

Comments

@guedressel
Copy link

I would like to see the feature to keep creation and modification dates of copied files.

@Hagith
Copy link

Hagith commented Apr 6, 2014

+1 on this. This allows to push only modified files to production.

@multicam
Copy link

multicam commented Apr 7, 2014

Any ETA on this one? I'd love this feature too.
Cheers

@AndrewDryga
Copy link

+1

@wkeizer
Copy link

wkeizer commented Apr 29, 2014

+1 indeed

@decadecity
Copy link

+1

@mheesters
Copy link

I also want this functionality, but..

grunt-contrib-copy uses the grunt.file library for file copying (and thus creation).
https://github.com/gruntjs/grunt/blob/master/lib/grunt/file.js

In turn, the grunt.file library uses the NodeJS filesystem library
https://github.com/joyent/node/blob/master/lib/fs.js

There doesn't seem to be any options or support for maintaining/altering the creation date on that level.
Only the access/modify dates through fs.futimes.

I created an issue in the NodeJS repo: nodejs/node-v0.x-archive#8252

@mheesters
Copy link

Looks like a dead-end: nodejs/node-v0.x-archive#8252

@shama
Copy link
Member

shama commented Sep 18, 2014

Fixed by 1e3607d

@jorangreef
Copy link

For anyone interested in preserving creation timestamps on Windows and Mac, you can now use https://github.com/ronomon/utimes to set the btime.

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

9 participants