MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / rootify

Function rootify

config/config.go:1201–1206  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Utils helper function to make config creation independent of root dir

(path, root string)

Source from the content-addressed store, hash-verified

1199
1200// helper function to make config creation independent of root dir
1201func rootify(path, root string) string {
1202 if filepath.IsAbs(path) {
1203 return path
1204 }
1205 return filepath.Join(root, path)
1206}
1207
1208//-----------------------------------------------------------------------------
1209// Moniker

Callers 12

ensureFilesFunction · 0.85
GenesisFileMethod · 0.85
PrivValidatorKeyFileMethod · 0.85
NodeKeyFileMethod · 0.85
NodeMinerKeyFileMethod · 0.85
DBDirMethod · 0.85
KeyFileMethod · 0.85
CertFileMethod · 0.85
AddrBookFileMethod · 0.85
WalDirMethod · 0.85
WalFileMethod · 0.85

Calls

no outgoing calls

Tested by 1

ensureFilesFunction · 0.68