MCPcopy
hub / github.com/rclone/rclone / GetModifyWindow

Function GetModifyWindow

fs/fs.go:99–113  ·  view source on GitHub ↗

GetModifyWindow calculates the maximum modify window between the given Fses and the Config.ModifyWindow parameter.

(ctx context.Context, fss ...Info)

Source from the content-addressed store, hash-verified

97// GetModifyWindow calculates the maximum modify window between the given Fses
98// and the Config.ModifyWindow parameter.
99func GetModifyWindow(ctx context.Context, fss ...Info) time.Duration {
100 window := time.Duration(GetConfig(ctx).ModifyWindow)
101 for _, f := range fss {
102 if f != nil {
103 precision := f.Precision()
104 if precision == ModTimeNotSupported {
105 return ModTimeNotSupported
106 }
107 if precision > window {
108 window = precision
109 }
110 }
111 }
112 return window
113}

Callers 15

timeDiffersFunction · 0.92
resolveNewerOlderMethod · 0.92
newRunFunction · 0.92
newRunIndividualFunction · 0.92
CheckItemsFunction · 0.92
RunFunction · 0.92
TestMarchFunction · 0.92
newSyncCopyMoveFunction · 0.92
tryRenameMethod · 0.92
TestSyncWithUpdateOlderFunction · 0.92
testServerSideMoveFunction · 0.92

Calls 2

GetConfigFunction · 0.70
PrecisionMethod · 0.65

Tested by 15

TestMarchFunction · 0.74
TestSyncWithUpdateOlderFunction · 0.74
testServerSideMoveFunction · 0.74
testLoggerVsLsfFunction · 0.74
TestPurgeFunction · 0.74
TestRmdirsNoLeaveRootFunction · 0.74
TestRmdirsLeaveRootFunction · 0.74
TestRmdirsWithFilterFunction · 0.74
TestDirMoveFunction · 0.74
TestDirsEqualFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…