MCPcopy
hub / github.com/filebrowser/filebrowser / Get

Method Get

http/public_test.go:278–292  ·  view source on GitHub ↗
(baseScope string, followExternalSymlinks bool, id interface{})

Source from the content-addressed store, hash-verified

276}
277
278func (cu *customFSUser) Get(baseScope string, followExternalSymlinks bool, id interface{}) (*users.User, error) {
279 user, err := cu.Store.Get(baseScope, followExternalSymlinks, id)
280 if err != nil {
281 return nil, err
282 }
283 // Inject a filesystem rooted at the test's temp scope, standing in for the
284 // one users.User.Clean would build in production.
285 if cu.followExternal {
286 user.Fs = cu.fs
287 } else {
288 user.Fs = files.NewScopedFs(cu.fs, "/")
289 }
290
291 return user, nil
292}

Callers

nothing calls this directly

Calls 2

NewScopedFsFunction · 0.92
GetMethod · 0.65

Tested by

no test coverage detected