MCPcopy
hub / github.com/kopia/kopia / repositoryConfigFileName

Method repositoryConfigFileName

cli/config.go:90–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88}
89
90func (c *App) repositoryConfigFileName() string {
91 if filepath.Base(c.configPath) != c.configPath {
92 return c.configPath
93 }
94
95 // bare filename specified without any directory (absolute or relative)
96 // resolve against OS-specific directory.
97 return filepath.Join(ospath.ConfigDir(), c.configPath)
98}
99
100func resolveSymlink(path string) (string, error) {
101 st, err := os.Lstat(path)

Callers 4

getPasswordFromFlagsMethod · 0.95
updateStateFilenameMethod · 0.95
openRepositoryMethod · 0.95

Calls 1

ConfigDirFunction · 0.92

Tested by

no test coverage detected