MCPcopy Create free account
hub / github.com/astercloud/aster / collectionDir

Method collectionDir

pkg/store/json.go:361–363  ·  view source on GitHub ↗

--- 通用 CRUD 方法实现 --- collectionDir 获取 collection 的存储目录

(collection string)

Source from the content-addressed store, hash-verified

359
360// collectionDir 获取 collection 的存储目录
361func (js *JSONStore) collectionDir(collection string) string {
362 return filepath.Join(js.baseDir, "_collections", collection)
363}
364
365// ensureCollectionDir 确保 collection 目录存在
366func (js *JSONStore) ensureCollectionDir(collection string) error {

Callers 6

ensureCollectionDirMethod · 0.95
GetMethod · 0.95
SetMethod · 0.95
DeleteMethod · 0.95
ListMethod · 0.95
ExistsMethod · 0.95

Calls 1

JoinMethod · 0.45

Tested by

no test coverage detected