MCPcopy
hub / github.com/filebrowser/filebrowser / Gets

Method Gets

users/storage.go:69–82  ·  view source on GitHub ↗

Gets gets a list of all users.

(baseScope string, followExternalSymlinks bool)

Source from the content-addressed store, hash-verified

67
68// Gets gets a list of all users.
69func (s *Storage) Gets(baseScope string, followExternalSymlinks bool) ([]*User, error) {
70 users, err := s.back.Gets()
71 if err != nil {
72 return nil, err
73 }
74
75 for _, user := range users {
76 if err := user.Clean(baseScope, followExternalSymlinks); err != nil {
77 return nil, err
78 }
79 }
80
81 return users, err
82}
83
84// Update updates a user in the database.
85func (s *Storage) Update(user *User, fields ...string) error {

Callers

nothing calls this directly

Calls 2

GetsMethod · 0.65
CleanMethod · 0.45

Tested by

no test coverage detected