-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
Allow to set file stats on dest() #96
Comments
Can you clarify a bit more? FYI you can do this in a plugin prior to dest - just modify file.stats |
Thanks for the advice about the plugin ;-) What I'm asking about is that at https://github.com/contra/vinyl-fs/blob/5b056f66c476ff32687c172d5fe79eaf47b2e80e/lib/dest/writeContents/writeBuffer.js#L6-L11 and https://github.com/contra/vinyl-fs/blob/5b056f66c476ff32687c172d5fe79eaf47b2e80e/lib/dest/writeContents/writeStream.js#L7-L12 file is created with current |
@piranna Interesting... could you explain your use case a bit more? You might want to try using symlinks instead of having gulp copy the files over - use gulp.symlink instead of gulp.dest |
@contra the referenced |
yes, @phated is (almost) true, some times source code tarballs can't be compiled if their time is different of the original ones since |
I've created a pull-request to fix this. |
Published this change as 2.2.0 |
Thank you :-) |
vinyl headers has support for the file stats, but
dest()
is not preserving them. opt field could accept astat
field and use it, I'm mostly interested onmtime
since download can't be able to preserve it, and source code tarballs fail. This can be done with the fs.utimes() function.The text was updated successfully, but these errors were encountered: