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

Method idFor

internal/store/gitstore.go:511–520  ·  view source on GitHub ↗
(path, baseDir string)

Source from the content-addressed store, hash-verified

509}
510
511func (s *GitTokenStore) idFor(path, baseDir string) string {
512 if baseDir == "" {
513 return path
514 }
515 rel, err := filepath.Rel(baseDir, path)
516 if err != nil {
517 return path
518 }
519 return rel
520}
521
522func (s *GitTokenStore) resolveAuthPath(auth *cliproxyauth.Auth) (string, error) {
523 if auth == nil {

Callers 1

readAuthFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected