MCPcopy
hub / github.com/rclone/rclone / Pin

Function Pin

fs/cache/cache.go:144–147  ·  view source on GitHub ↗

Pin f into the cache until Unpin is called

(f fs.Fs)

Source from the content-addressed store, hash-verified

142
143// Pin f into the cache until Unpin is called
144func Pin(f fs.Fs) {
145 createOnFirstUse()
146 c.Pin(fs.ConfigString(f))
147}
148
149// PinUntilFinalized pins f into the cache until x is garbage collected
150//

Callers 7

NewFsFileFunction · 0.92
newFsDirFunction · 0.92
NewFsSrcDstFilesFunction · 0.92
PinUntilFinalizedFunction · 0.85
GetFunction · 0.85
TestPinFunction · 0.85
TestPinFileFunction · 0.85

Calls 3

ConfigStringFunction · 0.92
createOnFirstUseFunction · 0.85
PinMethod · 0.80

Tested by 2

TestPinFunction · 0.68
TestPinFileFunction · 0.68