MCPcopy Create free account
hub / github.com/DNAProject/DNA / FileExisted

Function FileExisted

common/common.go:57–60  ·  view source on GitHub ↗

FileExisted checks whether filename exists in filesystem

(filename string)

Source from the content-addressed store, hash-verified

55
56// FileExisted checks whether filename exists in filesystem
57func FileExisted(filename string) bool {
58 _, err := os.Stat(filename)
59 return err == nil || os.IsExist(err)
60}

Callers 8

setGenesisFunction · 0.92
setP2PNodeConfigFunction · 0.92
OpenWalletFunction · 0.92
importWalletFunction · 0.92
ExportAccountFunction · 0.92
SaveMethod · 0.92
NewClientImplFunction · 0.92
TestFileExistedFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestFileExistedFunction · 0.68