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