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

Method resolveDeletePath

internal/store/gitstore.go:452–461  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

450}
451
452func (s *GitTokenStore) resolveDeletePath(id string) (string, error) {
453 if strings.ContainsRune(id, os.PathSeparator) || filepath.IsAbs(id) {
454 return id, nil
455 }
456 dir := s.baseDirSnapshot()
457 if dir == "" {
458 return "", fmt.Errorf("auth filestore: directory not configured")
459 }
460 return filepath.Join(dir, id), nil
461}
462
463func (s *GitTokenStore) readAuthFile(path, baseDir string) (*cliproxyauth.Auth, error) {
464 data, err := os.ReadFile(path)

Callers 1

DeleteMethod · 0.95

Calls 1

baseDirSnapshotMethod · 0.95

Tested by

no test coverage detected