MCPcopy Create free account
hub / github.com/github/docs / constructor

Method constructor

tests/helpers/data-directory.js:44–47  ·  view source on GitHub ↗
(data, root)

Source from the content-addressed store, hash-verified

42//
43export class DataDirectory {
44 constructor(data, root) {
45 this.root = root || this.createTempRoot('data-directory')
46 this.create(data)
47 }
48
49 createTempRoot(prefix) {
50 const fullPath = path.join(os.tmpdir(), prefix)

Callers

nothing calls this directly

Calls 2

createTempRootMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected