MCPcopy
hub / github.com/dosco/graphjin / createDir

Method createDir

wasm/fs.go:84–93  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

82}
83
84func (f *JSFS) createDir(path string) (err error) {
85 defer func() {
86 if err1 := recover(); err1 != nil {
87 err = toError(err1)
88 }
89 }()
90 opts := map[string]interface{}{"recursive": true}
91 f.fs.Call("mkdirSync", path, opts)
92 return nil
93}
94
95func (f *JSFS) List(path string) (entries []string, err error) {
96 path = filepath.Join(f.bp, path)

Callers 1

PutMethod · 0.95

Calls 2

toErrorFunction · 0.85
CallMethod · 0.65

Tested by

no test coverage detected