MCPcopy Index your code
hub / github.com/rclone/rclone / markDirModified

Method markDirModified

fs/sync/sync.go:1081–1088  ·  view source on GitHub ↗

keeps track of dirs with changed contents, to avoid setting modtimes on dirs that haven't changed

(dir string)

Source from the content-addressed store, hash-verified

1079
1080// keeps track of dirs with changed contents, to avoid setting modtimes on dirs that haven't changed
1081func (s *syncCopyMove) markDirModified(dir string) {
1082 if !s.setDirModTimeAfter {
1083 return
1084 }
1085 s.setDirModTimeMu.Lock()
1086 defer s.setDirModTimeMu.Unlock()
1087 s.modifiedDirs[dir] = struct{}{}
1088}
1089
1090// like markDirModified, but accepts an Object instead of a string.
1091// the marked dir will be this object's parent.

Callers 2

markDirModifiedObjectMethod · 0.95
SrcOnlyMethod · 0.95

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected