MCPcopy Create free account
hub / github.com/catppuccin/cli / PathExists

Function PathExists

internal/utils/utils.go:39–45  ·  view source on GitHub ↗

PathExists checks if a path exists

(path string)

Source from the content-addressed store, hash-verified

37
38// PathExists checks if a path exists
39func PathExists(path string) bool {
40 _, exists := os.Stat(path)
41 if os.IsNotExist(exists) {
42 return false
43 }
44 return true
45}
46
47// UserHomeDir gets the user's home directory
48func UserHomeDir() string {

Callers 5

updaterFunction · 0.92
searchPackageFunction · 0.92
makeLinkFunction · 0.85
HandleFilePathFunction · 0.85
MakeLocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected