MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / mkdir

Function mkdir

data/compression/libunrar.js:424–435  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

422
423 var rootDir = { type: 'dir', ls: {} }
424 var mkdir = function (path) {
425 var dir = rootDir
426 path.forEach(function (p) {
427 if (!(p in dir.ls)) {
428 dir.ls[p] = {
429 type: 'dir',
430 ls: {}
431 }
432 }
433 dir = dir.ls[p]
434 })
435 }
436 dirs.forEach(function (e) { mkdir(e.fileNameSplit) })
437
438 var putFile = function (entry) {

Callers 1

makeDirTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected