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

Method readMetaDataForPath

backend/mega/mega.go:210–216  ·  view source on GitHub ↗

readMetaDataForPath reads the metadata from the path

(ctx context.Context, remote string)

Source from the content-addressed store, hash-verified

208
209// readMetaDataForPath reads the metadata from the path
210func (f *Fs) readMetaDataForPath(ctx context.Context, remote string) (info *mega.Node, err error) {
211 rootNode, err := f.findRoot(ctx, false)
212 if err != nil {
213 return nil, err
214 }
215 return f.findObject(rootNode, remote)
216}
217
218// NewFs constructs an Fs from the path, container:path
219func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, error) {

Callers 1

readMetaDataMethod · 0.45

Calls 2

findRootMethod · 0.95
findObjectMethod · 0.95

Tested by

no test coverage detected