Sha256: 7d2160875119a117a068ef537b17fa82071e4d05683c706eb4aff9456ef2ce57

Contents?: true

Size: 462 Bytes

Versions: 390

Compression:

Stored size: 462 Bytes

Contents

var mkdirp = require('../');
var path = require('path');
var fs = require('fs');
var test = require('tap').test;

test('root', function (t) {
    // '/' on unix, 'c:/' on windows.
    var file = path.resolve('/');

    mkdirp(file, 0755, function (err) {
        if (err) throw err
        fs.stat(file, function (er, stat) {
            if (er) throw er
            t.ok(stat.isDirectory(), 'target is a directory');
            t.end();
        })
    });
});

Version data entries

390 entries across 203 versions & 13 rubygems

Version Path
trusty-festivity-extension-2.6 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.19 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.18 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.17 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.16 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.15 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.14 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.13 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.12 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.11 node_modules/bower/node_modules/mkdirp/test/root.js
trusty-festivity-extension-2.5.10 node_modules/bower/node_modules/bower-registry-client/node_modules/mkdirp/test/root.js