MCPcopy Create free account
hub / github.com/ethstorage/es-node / ResolvePath

Method ResolvePath

ethstorage/node/config.go:116–124  ·  view source on GitHub ↗

ResolvePath resolves path in the instance directory.

(path string)

Source from the content-addressed store, hash-verified

114
115// ResolvePath resolves path in the instance directory.
116func (c *Config) ResolvePath(path string) string {
117 if filepath.IsAbs(path) {
118 return path
119 }
120 if c.DataDir == "" {
121 return ""
122 }
123 return filepath.Join(c.DataDir, path)
124}
125
126func (c *Config) ResolveAncient(name string, ancient string) string {
127 switch {

Callers 2

ResolveAncientMethod · 0.95
initDatabaseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected