| /third_party/node/test/sequential/ |
| D | test-fs-readdir-recursive.js | 6 const pathModule = require('path'); constant 70 fs.writeFileSync(pathModule.join(path, fileOrDir), ''); 72 const dirPath = pathModule.join(path, fileOrDir[0]); 83 const symlinksRootPath = pathModule.join(readdirDir, 'symlinks'); 84 const symlinkTargetFile = pathModule.join(symlinksRootPath, 'symlink-target-file'); 85 const symlinkTargetDir = pathModule.join(symlinksRootPath, 'symlink-target-dir'); 89 fs.symlinkSync(symlinkTargetFile, pathModule.join(symlinksRootPath, 'symlink-src-file')); 90 fs.symlinkSync(symlinkTargetDir, pathModule.join(symlinksRootPath, 'symlink-src-dir')); 126 expected[i] = pathModule.normalize(expected[i]); 130 return pathModule.relative(readdirDir, pathModule.join(dirent.path, dirent.name));
|
| D | test-fs-opendir-recursive.js | 7 const pathModule = require('path'); constant 71 fs.writeFileSync(pathModule.join(path, fileOrDir), ''); 73 const dirPath = pathModule.join(path, fileOrDir[0]); 84 const symlinksRootPath = pathModule.join(testDir, 'symlinks'); 85 const symlinkTargetFile = pathModule.join(symlinksRootPath, 'symlink-target-file'); 86 const symlinkTargetDir = pathModule.join(symlinksRootPath, 'symlink-target-dir'); 90 fs.symlinkSync(symlinkTargetFile, pathModule.join(symlinksRootPath, 'symlink-src-file')); 91 fs.symlinkSync(symlinkTargetDir, pathModule.join(symlinksRootPath, 'symlink-src-dir')); 127 expected[i] = pathModule.normalize(expected[i]); 131 return pathModule.relative(testDir, dirent.path);
|
| /third_party/node/lib/ |
| D | fs.js | 60 const pathModule = require('path'); constant 246 binding.access(pathModule.toNamespacedPath(path), mode, req); 261 binding.access(pathModule.toNamespacedPath(path), mode, undefined, ctx); 310 const nPath = pathModule.toNamespacedPath(path); 416 binding.open(pathModule.toNamespacedPath(path), 581 binding.open(pathModule.toNamespacedPath(path), 600 const result = binding.open(pathModule.toNamespacedPath(path), 1023 binding.rename(pathModule.toNamespacedPath(oldPath), 1024 pathModule.toNamespacedPath(newPath), 1040 binding.rename(pathModule.toNamespacedPath(oldPath), [all …]
|
| /third_party/node/lib/internal/fs/ |
| D | promises.js | 86 const pathModule = require('path'); constant 562 return binding.access(pathModule.toNamespacedPath(path), mode, 568 src = pathModule.toNamespacedPath(getValidatedPath(src, 'src')); 569 dest = pathModule.toNamespacedPath(getValidatedPath(dest, 'dest')); 577 return binding.copyFile(pathModule.toNamespacedPath(src), 578 pathModule.toNamespacedPath(dest), 590 await binding.openFileHandle(pathModule.toNamespacedPath(path), 710 return binding.rename(pathModule.toNamespacedPath(oldPath), 711 pathModule.toNamespacedPath(newPath), 727 path = pathModule.toNamespacedPath(getValidatedPath(path)); [all …]
|
| D | dir.js | 13 const pathModule = require('path'); constant 155 pathModule.join(path, result[i]), 166 pathModule.toNamespacedPath(dirent.path), 316 pathModule.toNamespacedPath(path), 330 pathModule.toNamespacedPath(path),
|
| D | utils.js | 60 const pathModule = require('path'); constant 221 const bufferSep = Buffer.from(pathModule.sep); 230 const pathBuffer = Buffer.from(pathModule.join(path, pathModule.sep)); 235 return pathModule.basename(path) === name ? path : pathModule.join(path, name); 394 path = pathModule.resolve(linkPath, '..', path); 395 return pathModule.toNamespacedPath(path); 397 if (pathModule.isAbsolute(path)) { 399 return pathModule.toNamespacedPath(path);
|
| /third_party/node/deps/npm/node_modules/fs.realpath/ |
| D | old.js | 22 var pathModule = require('path'); variable 69 var normalize = pathModule.normalize; 88 p = pathModule.resolve(p); 166 resolvedLink = pathModule.resolve(previous, linkTarget); 173 p = pathModule.resolve(resolvedLink, p.slice(pos)); 190 p = pathModule.resolve(p); 293 var resolvedLink = pathModule.resolve(previous, target); 300 p = pathModule.resolve(resolvedLink, p.slice(pos));
|
| /third_party/node/deps/npm/node_modules/tar/lib/ |
| D | header.js | 8 const pathModule = require('path').posix constant 218 const root = pathModule.parse(p).root || '.' 224 prefix = pathModule.dirname(pp) 225 pp = pathModule.basename(pp) 238 pp = pathModule.join(pathModule.basename(prefix), pp) 239 prefix = pathModule.dirname(prefix)
|
| /third_party/typescript/src/harness/ |
| D | harnessIO.ts | 45 let fs: any, pathModule: any; 48 pathModule = require("path"); 51 fs = pathModule = {}; 62 const dirPath = pathModule.dirname(path); 68 return pathModule.join(...components); 80 const pathToFile = pathModule.join(folder, file);
|
| /third_party/node/deps/corepack/dist/lib/ |
| D | corepack.cjs | 32142 var pathModule = require("path").posix; 32311 const root = pathModule.parse(p).root || "."; 32315 prefix = pathModule.dirname(pp); 32316 pp = pathModule.basename(pp); 32323 pp = pathModule.join(pathModule.basename(prefix), pp); 32324 prefix = pathModule.dirname(prefix);
|