MCPcopy Create free account
hub / github.com/bare-cli/bare / MakeInitFolder

Function MakeInitFolder

utils/osutil/init.go:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func MakeInitFolder() {
10 // Get home directory
11 homePath := os.Getenv("HOME")
12 if !Exists(filepath.Join(homePath, ".bare")) {
13 if err := os.Mkdir(homePath+"/.bare", os.ModePerm); err != nil {
14 log.Fatal(err)
15 }
16 }
17
18}
19
20func MakeDownloadFolder() {
21 homePath := os.Getenv("HOME")

Callers 1

mainFunction · 0.92

Calls 1

ExistsFunction · 0.85

Tested by

no test coverage detected