(data, root)
| 42 | // |
| 43 | export 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) |
nothing calls this directly
no test coverage detected