Lines Matching full:path

26 const path = require('path');
36 // fs.mkdir creates directory using assigned path
38 const pathname = path.join(tmpdir.path, nextdir());
48 const pathname = path.join(tmpdir.path, nextdir());
58 const pathname = path.join(tmpdir.path, nextdir());
68 const pathname = path.join(tmpdir.path, nextdir());
75 // mkdirSync successfully creates directory from given path
77 const pathname = path.join(tmpdir.path, nextdir());
85 // mkdirSync and mkdir require path to be a string, buffer or url.
106 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
117 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
130 const pathname = `${tmpdir.path}/${nextdir()}/../${nextdir()}/${nextdir()}`;
137 // mkdirpSync when path is a file.
139 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
141 fs.mkdirSync(path.dirname(pathname));
155 // mkdirpSync when part of the path is a file.
157 const filename = path.join(tmpdir.path, nextdir(), nextdir());
158 const pathname = path.join(filename, nextdir(), nextdir());
160 fs.mkdirSync(path.dirname(filename));
170 path: pathname // See: https://github.com/nodejs/node/issues/28015
177 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
186 // `mkdirp` when path is a file.
188 const pathname = path.join(tmpdir.path, nextdir(), nextdir());
190 fs.mkdirSync(path.dirname(pathname));
199 // `mkdirp` when part of the path is a file.
201 const filename = path.join(tmpdir.path, nextdir(), nextdir());
202 const pathname = path.join(filename, nextdir(), nextdir());
204 fs.mkdirSync(path.dirname(filename));
211 // The path field varies slightly in Windows errors, vs., other platforms
214 assert(err.path.startsWith(filename));
221 const pathname = path.join(tmpdir.path, nextdir());
243 const pathname = path.join(tmpdir.path, nextdir());
271 const firstPathCreated = path.join(tmpdir.path, dir1);
272 const pathname = path.join(tmpdir.path, dir1, dir2);
274 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall(function(err, path) {
278 assert.strictEqual(path, firstPathCreated);
286 const pathname = path.join(tmpdir.path, dir1, dir2);
287 fs.mkdirSync(path.join(tmpdir.path, dir1));
288 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall(function(err, path) {
292 assert.strictEqual(path, pathname);
300 const pathname = path.join(tmpdir.path, dir1, dir2);
301 fs.mkdirSync(path.join(tmpdir.path, dir1, dir2), common.mustNotMutateObjectDeep({ recursive: true }));
302 fs.mkdir(pathname, common.mustNotMutateObjectDeep({ recursive: true }), common.mustCall(function(err, path) {
306 assert.strictEqual(path, undefined);
314 const firstPathCreated = path.join(tmpdir.path, dir1);
315 const pathname = path.join(tmpdir.path, dir1, dir2);
326 const pathname = path.join(tmpdir.path, dir1, dir2);
327 fs.mkdirSync(path.join(tmpdir.path, dir1), common.mustNotMutateObjectDeep({ recursive: true }));
338 const pathname = path.join(tmpdir.path, dir1, dir2);
339 fs.mkdirSync(path.join(tmpdir.path, dir1, dir2), common.mustNotMutateObjectDeep({ recursive: true }));
350 const firstPathCreated = path.join(tmpdir.path, dir1);
351 const pathname = path.join(tmpdir.path, dir1, dir2);