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

Feature: preserveTimestamps #104

Open
jeffrson opened this issue Aug 21, 2022 · 0 comments
Open

Feature: preserveTimestamps #104

jeffrson opened this issue Aug 21, 2022 · 0 comments

Comments

@jeffrson
Copy link

AFAICT: cpy uses graceful-fs, which in turn should use fs.copyFile to copy files. How fs.copyFile handles timestamps seems to be platform dependent. Now there's a new fs.cp in recent NodeJs versions that has a special option called preserveTimestamps, fs-extra has it too.

So I would like to propose to add this option in cpy as well - not only for files, but for directories too (cp -a).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants