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
Add preserve option to cp #869
Conversation
Work left:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maldito-dot
GET / HTTP/1.1
Accept: /
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cookie: sessionid=foo;another-cookie=bar
Host: pie.dev
User-Agent: HTTPie/0.9.9
If anyone wants to take this over, help would be welcome! 🙏🏻 |
cf6c70f
to
3c57b61
Compare
Codecov Report
@@ Coverage Diff @@
## master #869 +/- ##
==========================================
+ Coverage 97.18% 97.19% +0.01%
==========================================
Files 36 36
Lines 1349 1354 +5
==========================================
+ Hits 1311 1316 +5
Misses 38 38
Continue to review full report at Codecov.
|
This rewrites the `cp -p` tests to make some reasonable assertions about the behavior. This also removes sleep statements. This leaves a TODO for a known bug.
Hmm. There appears to be a node v9 bug which limits the resolution of atime/mtime to seconds (instead of milliseconds). I wonder if changing the test values from |
This works around a node v9 bug where mtime and atime appear to only have precision in seconds even though the units are in milliseconds.
Blocked on #1074 |
Apparently `cp -p` actually does update the atime of the source file.
Actually... maybe |
This adds recursive support for `cp -p`. This also sets atime/mtime on the directory itself.
This is a redo of #841.
This adds the
-p
flag tocp()
to preserve certain attributes, such as timestamps.Fixes #771