Lines Matching refs:pathname

38   const pathname = path.join(tmpdir.path, nextdir());
40 fs.mkdir(pathname, common.mustCall(function(err) {
42 assert.strictEqual(fs.existsSync(pathname), true);
48 const pathname = path.join(tmpdir.path, nextdir());
50 fs.mkdir(pathname, 0o777, common.mustCall(function(err) {
52 assert.strictEqual(fs.existsSync(pathname), true);
58 const pathname = path.join(tmpdir.path, nextdir());
60 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ mode: 0o777 }), common.mustCall(function(err) {
62 assert.strictEqual(fs.existsSync(pathname), true);
68 const pathname = path.join(tmpdir.path, nextdir());
70 fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ mode: 0o777 }));
72 assert.strictEqual(fs.existsSync(pathname), true);
77 const pathname = path.join(tmpdir.path, nextdir());
79 fs.mkdirSync(pathname);
81 const exists = fs.existsSync(pathname);
106 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
108 fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ recursive: true }));
110 const exists = fs.existsSync(pathname);
112 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
117 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
119 fs.mkdirSync(pathname, { recursive: true });
121 fs.mkdirSync(pathname, { recursive: true });
123 const exists = fs.existsSync(pathname);
125 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
130 const pathname = `${tmpdir.path}/${nextdir()}/../${nextdir()}/${nextdir()}`;
131 fs.mkdirSync(pathname, { recursive: true });
132 const exists = fs.existsSync(pathname);
134 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
139 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
141 fs.mkdirSync(path.dirname(pathname));
142 fs.writeFileSync(pathname, '', 'utf8');
145 () => { fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ recursive: true })); },
158 const pathname = path.join(filename, nextdir(), nextdir());
164 () => { fs.mkdirSync(pathname, { recursive: true }); },
170 path: pathname // See: https://github.com/nodejs/node/issues/28015
177 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
179 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall(function(err) {
181 assert.strictEqual(fs.existsSync(pathname), true);
182 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
188 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
190 fs.mkdirSync(path.dirname(pathname));
191 fs.writeFileSync(pathname, '', 'utf8');
192 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall((err) => {
195 assert.strictEqual(fs.statSync(pathname).isDirectory(), false);
202 const pathname = path.join(filename, nextdir(), nextdir());
206 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall((err) => {
209 assert.strictEqual(fs.existsSync(pathname), false);
213 // use startsWith() rather than comparing to the full "pathname".
221 const pathname = path.join(tmpdir.path, nextdir());
222 fs.mkdirSync(pathname);
223 process.chdir(pathname);
224 fs.rmdirSync(pathname);
243 const pathname = path.join(tmpdir.path, nextdir());
247 () => fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive }), common.mustNotCall()),
256 () => fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ recursive })),
272 const pathname = path.join(tmpdir.path, dir1, dir2);
274 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall(function(err, path) {
276 assert.strictEqual(fs.existsSync(pathname), true);
277 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
286 const pathname = path.join(tmpdir.path, dir1, dir2);
288 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall(function(err, path) {
290 assert.strictEqual(fs.existsSync(pathname), true);
291 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
292 assert.strictEqual(path, pathname);
300 const pathname = path.join(tmpdir.path, dir1, dir2);
302 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall(function(err, path) {
304 assert.strictEqual(fs.existsSync(pathname), true);
305 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
315 const pathname = path.join(tmpdir.path, dir1, dir2);
316 const p = fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ recursive: true }));
317 assert.strictEqual(fs.existsSync(pathname), true);
318 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
326 const pathname = path.join(tmpdir.path, dir1, dir2);
328 const p = fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ recursive: true }));
329 assert.strictEqual(fs.existsSync(pathname), true);
330 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
331 assert.strictEqual(p, pathname);
338 const pathname = path.join(tmpdir.path, dir1, dir2);
340 const p = fs.mkdirSync(pathname, common.mustNotMutateObjectDeep({ recursive: true }));
341 assert.strictEqual(fs.existsSync(pathname), true);
342 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);
351 const pathname = path.join(tmpdir.path, dir1, dir2);
353 const p = await fs.promises.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }));
354 assert.strictEqual(fs.existsSync(pathname), true);
355 assert.strictEqual(fs.statSync(pathname).isDirectory(), true);