MCPcopy Create free account
hub / github.com/dropbox/dbxcli / authFilePath

Function authFilePath

cmd/auth.go:181–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179}
180
181func authFilePath() (string, error) {
182 if filePath := os.Getenv(envAuthFile); filePath != "" {
183 return homedir.Expand(filePath)
184 }
185
186 dir, err := homedir.Dir()
187 if err != nil {
188 return "", err
189 }
190 return filepath.Join(dir, ".config", "dbxcli", configFileName), nil
191}
192
193func authFileKind() string {
194 if os.Getenv(envAuthFile) != "" {

Callers 3

getAccessCredentialFunction · 0.85
TestAuthFilePathUsesEnvFunction · 0.85
logoutFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestAuthFilePathUsesEnvFunction · 0.68