MCPcopy
hub / github.com/rclone/rclone / isWrappedByCrypt

Method isWrappedByCrypt

backend/cache/cache.go:1818–1824  ·  view source on GitHub ↗

isWrappedByCrypt checks if this is wrapped by a crypt remote

()

Source from the content-addressed store, hash-verified

1816
1817// isWrappedByCrypt checks if this is wrapped by a crypt remote
1818func (f *Fs) isWrappedByCrypt() (*crypt.Fs, bool) {
1819 if f.wrapper == nil {
1820 return nil, false
1821 }
1822 c, ok := f.wrapper.(*crypt.Fs)
1823 return c, ok
1824}
1825
1826// cleanRootFromPath trims the root of the current fs from a path
1827func (f *Fs) cleanRootFromPath(p string) string {

Callers 3

unwrapRemoteMethod · 0.95
receiveChangeNotifyMethod · 0.95
isPlayingMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected