MCPcopy Create free account
hub / github.com/53AI/53AIHub / GetPath

Method GetPath

api/model/file.go:517–523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

515}
516
517func (file *File) GetPath() string {
518 // 统一添加路径前缀
519 if file.Path != "" && !strings.HasPrefix(file.Path, "/") {
520 return "/" + file.Path
521 }
522 return file.Path
523}
524
525// NormalizePath 将文件路径规范化为带前导斜杠的形式。
526func (file *File) NormalizePath() {

Callers 3

SaveMethod · 0.95
GetChunkingStatusFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected