MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / IsFileExist

Function IsFileExist

IceFireDB-SQLite/utils/util.go:65–73  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

63}
64
65func IsFileExist(path string) bool {
66 _, err := os.Stat(path)
67 if err != nil {
68 if os.IsNotExist(err) {
69 return false
70 }
71 }
72 return true
73}
74
75func GetHostAddress(ha host.Host) string {
76 // Build host multiaddress

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected