Lines Matching refs:path

6 const path = require('path');
19 const tmpFolder = fs.mkdtempSync(path.join(tmpdir.path, 'foo.'));
21 assert.strictEqual(path.basename(tmpFolder).length, 'foo.XXXXXX'.length);
24 const utf8 = fs.mkdtempSync(path.join(tmpdir.path, '\u0222abc.'));
25 assert.strictEqual(Buffer.byteLength(path.basename(utf8)),
29 fs.mkdtemp(path.join(tmpdir.path, 'bar.'), common.mustCall(handler));
33 fs.mkdtemp(path.join(tmpdir.path, 'bar.'), {}, common.mustCall(handler));
38 fs.mkdtemp(path.join(tmpdir.path, 'bar.X'), common.mustCall(handler));
45 assert.strictEqual(path.basename(tmpFolder).length, 'foo.XXXXXX'.length);
49 assert.strictEqual(Buffer.byteLength(path.basename(utf8)),
65 const tmpFolder = fs.mkdtempSync(Buffer.from(path.join(tmpdir.path, 'foo.')));
67 assert.strictEqual(path.basename(tmpFolder).length, 'foo.XXXXXX'.length);
70 const utf8 = fs.mkdtempSync(Buffer.from(path.join(tmpdir.path, '\u0222abc.')));
71 assert.strictEqual(Buffer.byteLength(path.basename(utf8)),
75 fs.mkdtemp(Buffer.from(path.join(tmpdir.path, 'bar.')), common.mustCall(handler));
79 fs.mkdtemp(Buffer.from(path.join(tmpdir.path, 'bar.')), {}, common.mustCall(handler));
82 fs.mkdtemp(Buffer.from(path.join(tmpdir.path, 'bar.X')), common.mustCall(handler));
89 const tmpFolder = fs.mkdtempSync(encoder.encode(path.join(tmpdir.path, 'foo.')));
91 assert.strictEqual(path.basename(tmpFolder).length, 'foo.XXXXXX'.length);
94 const utf8 = fs.mkdtempSync(encoder.encode(path.join(tmpdir.path, '\u0222abc.')));
95 assert.strictEqual(Buffer.byteLength(path.basename(utf8)),
99 fs.mkdtemp(encoder.encode(path.join(tmpdir.path, 'bar.')), common.mustCall(handler));
103 fs.mkdtemp(encoder.encode(path.join(tmpdir.path, 'bar.')), {}, common.mustCall(handler));
106 fs.mkdtemp(encoder.encode(path.join(tmpdir.path, 'bar.X')), common.mustCall(handler));