-
Notifications
You must be signed in to change notification settings - Fork 45
Conversation
// StreamModTime is used to provide the modified time of the stream's data. | ||
type StreamModTime interface { |
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.
Nit: slightly more in keeping with go interface naming convention.
// StreamModTime is used to provide the modified time of the stream's data. | |
type StreamModTime interface { | |
// ModTimer is used to provide the modified time of the stream's data. | |
type ModTimer interface { |
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.
hmmm actually now that I look at it more, can we hold off on this. I wanted to keep it consistent with some of the other interfaces defined in the file (StreamSize
, StreamInfo
). I think either we should change all of them in a different patch or leave them all consistency
dff9f33
to
55df307
Compare
c3d3fbc
to
b6be41f
Compare
Mod times allow kopia to skip uploading files it's previously uploaded (assuming they haven't changed), so providing this information to it is useful.
Mostly useful for testing, but could be reported to the user as well.
* default mod time for exchange mock connector item to the current time (preserve current behavior as long as items are not re-used) * expand backup test to test for caching
55df307
to
6979e84
Compare
Aviator status
This PR was merged using Aviator. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description
Set the mod time of uploaded files to either the mod time of the item (if it has one) or the current time (if it does not have one). Also add tests to check caching in kopia works properly.
Type of change
Issue(s)
StreamingFile
s #621part of:
merge after:
Test Plan