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

Method resolveDeletePath

internal/store/postgresstore.go:588–593  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

586}
587
588func (s *PostgresStore) resolveDeletePath(id string) (string, error) {
589 if strings.ContainsRune(id, os.PathSeparator) || filepath.IsAbs(id) {
590 return id, nil
591 }
592 return filepath.Join(s.authDir, filepath.FromSlash(id)), nil
593}
594
595func (s *PostgresStore) relativeAuthID(path string) (string, error) {
596 if s == nil {

Callers 1

DeleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected