MCPcopy
hub / github.com/rclone/rclone / notifyChangeUpstreamIfNeeded

Method notifyChangeUpstreamIfNeeded

backend/cache/cache.go:864–868  ·  view source on GitHub ↗

notifyChangeUpstreamIfNeeded will check if the wrapped remote doesn't notify on changes or if we use a temp fs

(remote string, entryType fs.EntryType)

Source from the content-addressed store, hash-verified

862// notifyChangeUpstreamIfNeeded will check if the wrapped remote doesn't notify on changes
863// or if we use a temp fs
864func (f *Fs) notifyChangeUpstreamIfNeeded(remote string, entryType fs.EntryType) {
865 if f.Fs.Features().ChangeNotify == nil || f.opt.TempWritePath != "" {
866 f.notifyChangeUpstream(remote, entryType)
867 }
868}
869
870// notifyChangeUpstream will loop through all the upstreams and notify
871// of the provided remote (should be only a dir)

Callers 8

MkdirMethod · 0.95
RmdirMethod · 0.95
DirMoveMethod · 0.95
putMethod · 0.95
CopyMethod · 0.95
MoveMethod · 0.95
UpdateMethod · 0.80
RemoveMethod · 0.80

Calls 2

notifyChangeUpstreamMethod · 0.95
FeaturesMethod · 0.65

Tested by

no test coverage detected