for(var mkdirp=require("../").mkdirp,path=require("path"),fs=require("fs"),test=require("tap").test,_0755=parseInt("0755",8),ps=["","tmp"],i=0;i<25;i++){var dir=Math.floor(Math.random()*Math.pow(16,4)).toString(16);ps.push(dir)}var file=ps.join("/"),itw=ps.slice(0,3).join("/");test("clobber-pre",function(i){console.error("about to write to "+itw),fs.writeFileSync(itw,"I AM IN THE WAY, THE TRUTH, AND THE LIGHT."),fs.stat(itw,function(t,r){i.ifError(t),i.ok(r&&r.isFile(),"should be file"),i.end()})}),test("clobber",function(i){i.plan(2),mkdirp(file,_0755,function(t){i.ok(t),i.equal(t.code,"ENOTDIR"),i.end()})});