MCPcopy Create free account
hub / github.com/DEROFDN/Engram / checkDir

Function checkDir

res.go:123–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121}
122
123func checkDir() (err error) {
124 err = os.MkdirAll(filepath.Join(AppPath(), "mainnet"), os.ModePerm)
125 if err != nil {
126 return
127 }
128 err = os.MkdirAll(filepath.Join(AppPath(), "testnet"), os.ModePerm)
129 if err != nil {
130 return
131 }
132 err = os.MkdirAll(filepath.Join(AppPath(), "testnet_simulator"), os.ModePerm)
133 if err != nil {
134 return
135 }
136 err = os.MkdirAll(filepath.Join(AppPath(), "datashards"), os.ModePerm)
137 if err != nil {
138 return
139 }
140
141 return
142}
143
144// Write the content to uri
145func writeToURI(content []byte, uri fyne.URIWriteCloser) (n int, err error) {

Callers 2

layoutNewAccountFunction · 0.85
layoutRestoreFunction · 0.85

Calls 1

AppPathFunction · 0.85

Tested by

no test coverage detected