MCPcopy Index your code
hub / github.com/dnote/dnote / getLegacyDnotePath

Function getLegacyDnotePath

pkg/cli/infra/init.go:182–184  ·  view source on GitHub ↗

getLegacyDnotePath returns a legacy dnote directory path placed under the user's home directory

(homeDir string)

Source from the content-addressed store, hash-verified

180// getLegacyDnotePath returns a legacy dnote directory path placed under
181// the user's home directory
182func getLegacyDnotePath(homeDir string) string {
183 return fmt.Sprintf("%s/%s", homeDir, consts.LegacyDnoteDirName)
184}
185
186// InitDB initializes the database.
187// Ideally this process must be a part of migration sequence. But it is performed

Callers 2

checkLegacyDBPathFunction · 0.85
newBaseCtxFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected