MCPcopy
hub / github.com/filebrowser/filebrowser / GetByScope

Method GetByScope

users/storage.go:64–66  ·  view source on GitHub ↗

GetByScope returns the first user whose scope matches the given one, or ErrNotExist if none does. The user is returned as stored, without setting up its filesystem, as it is meant for existence checks rather than serving.

(scope string)

Source from the content-addressed store, hash-verified

62// ErrNotExist if none does. The user is returned as stored, without setting up
63// its filesystem, as it is meant for existence checks rather than serving.
64func (s *Storage) GetByScope(scope string) (*User, error) {
65 return s.back.GetByScope(scope)
66}
67
68// Gets gets a list of all users.
69func (s *Storage) Gets(baseScope string, followExternalSymlinks bool) ([]*User, error) {

Callers

nothing calls this directly

Calls 1

GetByScopeMethod · 0.65

Tested by

no test coverage detected