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

Method Scan

lib/encoder/encoder.go:210–216  ·  view source on GitHub ↗

Scan implements the fmt.Scanner interface

(s fmt.ScanState, ch rune)

Source from the content-addressed store, hash-verified

208
209// Scan implements the fmt.Scanner interface
210func (mask *MultiEncoder) Scan(s fmt.ScanState, ch rune) error {
211 token, err := s.Token(true, nil)
212 if err != nil {
213 return err
214 }
215 return mask.Set(string(token))
216}
217
218// Encode takes a raw name and substitutes any reserved characters and
219// patterns in it

Callers

nothing calls this directly

Calls 2

SetMethod · 0.95
TokenMethod · 0.45

Tested by

no test coverage detected