MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / SetBaseDir

Method SetBaseDir

sdk/auth/filestore.go:69–73  ·  view source on GitHub ↗

SetBaseDir updates the default directory used for auth JSON persistence when no explicit path is provided.

(dir string)

Source from the content-addressed store, hash-verified

67
68// SetBaseDir updates the default directory used for auth JSON persistence when no explicit path is provided.
69func (s *FileTokenStore) SetBaseDir(dir string) {
70 s.dirLock.Lock()
71 s.baseDir = strings.TrimSpace(dir)
72 s.dirLock.Unlock()
73}
74
75// Save persists token storage and metadata to the resolved auth file path.
76func (s *FileTokenStore) Save(ctx context.Context, auth *cliproxyauth.Auth) (string, error) {

Callers 10

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.45
BuildMethod · 0.45
LoginMethod · 0.45
mainFunction · 0.45

Calls

no outgoing calls