MCPcopy Index your code
hub / github.com/filebrowser/filebrowser / generateKey

Function generateKey

cmd/utils.go:42–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42func generateKey() []byte {
43 k, err := settings.GenerateKey()
44 if err != nil {
45 panic(err)
46 }
47 return k
48}
49
50func dbExists(path string) (bool, error) {
51 stat, err := os.Stat(path)

Callers 3

config_import.goFile · 0.85
quickSetupFunction · 0.85
config_init.goFile · 0.85

Calls 1

GenerateKeyFunction · 0.92

Tested by

no test coverage detected