MCPcopy
hub / github.com/rclone/rclone / NewFsSrc

Function NewFsSrc

cmd/cmd.go:135–138  ·  view source on GitHub ↗

NewFsSrc creates a new src fs from the arguments. The source can be a file or a directory - if a file then it will limit the Fs to a single file.

(args []string)

Source from the content-addressed store, hash-verified

133// The source can be a file or a directory - if a file then it will
134// limit the Fs to a single file.
135func NewFsSrc(args []string) fs.Fs {
136 fsrc, _ := newFsFileAddFilter(args[0])
137 return fsrc
138}
139
140// newFsDir creates an Fs from a name
141//

Callers 15

lsl.goFile · 0.92
lsd.goFile · 0.92
ls.goFile · 0.92
dlna.goFile · 0.92
http.goFile · 0.92
RunFunction · 0.92
webdav.goFile · 0.92
s3.goFile · 0.92
restic.goFile · 0.92
TestListErrorsFunction · 0.92
TestServeErrorsFunction · 0.92

Calls 1

newFsFileAddFilterFunction · 0.85

Tested by 4

TestListErrorsFunction · 0.74
TestServeErrorsFunction · 0.74
TestResticHandlerFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…