-
Notifications
You must be signed in to change notification settings - Fork 7
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 the --update option to "storage cp". #1007
Conversation
Issues:
|
Codecov Report
@@ Coverage Diff @@
## master #1007 +/- ##
==========================================
- Coverage 88.37% 87.12% -1.25%
==========================================
Files 37 37
Lines 4566 4551 -15
Branches 681 680 -1
==========================================
- Hits 4035 3965 -70
- Misses 414 457 +43
- Partials 117 129 +12
Continue to review full report at Codecov.
|
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.
lgtm, but please use monotonic time clock just for the case
@@ -46,6 +51,7 @@ | |||
|
|||
MAX_OPEN_FILES = 100 | |||
READ_SIZE = 2 ** 20 # 1 MiB | |||
TIME_THRESHOLD = 1.0 |
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.
I sec I guess?
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.
Yes, 1 sec. Tests set it even to 0 sec.
neuro storage cp --update
should copy only when the source file is newer than the destination file or when the destination file is missing.