Lines Matching refs:ctx

252   const ctx = { path };
253 binding.access(pathModule.toNamespacedPath(path), mode, undefined, ctx);
254 handleErrorFromBinding(ctx);
301 const ctx = { path };
303 binding.access(nPath, F_OK, undefined, ctx);
308 if (isWindows && ctx.errno === undefined) {
309 binding.stat(nPath, false, undefined, ctx);
312 return ctx.errno === undefined;
416 const ctx = {};
417 const stats = binding.fstat(fd, false, undefined, ctx);
418 if (ctx.errno !== undefined && !isUserFd) {
420 throw uvException(ctx);
540 const ctx = {};
541 binding.close(fd, undefined, ctx);
542 handleErrorFromBinding(ctx);
592 const ctx = { path };
595 undefined, ctx);
596 handleErrorFromBinding(ctx);
741 const ctx = {};
743 undefined, ctx);
744 handleErrorFromBinding(ctx);
795 const ctx = {};
800 const result = binding.readBuffers(fd, buffers, position, undefined, ctx);
801 handleErrorFromBinding(ctx);
896 const ctx = {};
919 undefined, ctx);
927 undefined, ctx);
929 handleErrorFromBinding(ctx);
991 const ctx = {};
996 const result = binding.writeBuffers(fd, buffers, position, undefined, ctx);
998 handleErrorFromBinding(ctx);
1032 const ctx = { path: oldPath, dest: newPath };
1034 pathModule.toNamespacedPath(newPath), undefined, ctx);
1035 handleErrorFromBinding(ctx);
1131 const ctx = {};
1132 binding.ftruncate(fd, len, undefined, ctx);
1133 handleErrorFromBinding(ctx);
1220 const ctx = { path };
1221 binding.rmdir(pathModule.toNamespacedPath(path), undefined, ctx);
1222 return handleErrorFromBinding(ctx);
1298 const ctx = {};
1299 binding.fdatasync(fd, undefined, ctx);
1300 handleErrorFromBinding(ctx);
1325 const ctx = {};
1326 binding.fsync(fd, undefined, ctx);
1327 handleErrorFromBinding(ctx);
1387 const ctx = { path };
1390 undefined, ctx);
1391 handleErrorFromBinding(ctx);
1412 const ctx = { path: basePath };
1414 ctx.path = path;
1420 ctx,
1422 handleErrorFromBinding(ctx);
1521 const ctx = { path };
1524 undefined, ctx);
1525 handleErrorFromBinding(ctx);
1618 function hasNoEntryError(ctx) {
1619 if (ctx.errno) {
1620 const uvErr = uvErrmapGet(ctx.errno);
1624 if (ctx.error) {
1625 return ctx.error.code === 'ENOENT';
1642 const ctx = { fd };
1643 const stats = binding.fstat(fd, options.bigint, undefined, ctx);
1644 handleErrorFromBinding(ctx);
1660 const ctx = { path };
1662 options.bigint, undefined, ctx);
1663 if (options.throwIfNoEntry === false && hasNoEntryError(ctx)) {
1666 handleErrorFromBinding(ctx);
1682 const ctx = { path };
1684 options.bigint, undefined, ctx);
1685 if (options.throwIfNoEntry === false && hasNoEntryError(ctx)) {
1688 handleErrorFromBinding(ctx);
1694 const ctx = { path };
1696 options.bigint, undefined, ctx);
1697 handleErrorFromBinding(ctx);
1731 const ctx = { path };
1733 options.encoding, undefined, ctx);
1734 handleErrorFromBinding(ctx);
1810 const ctx = { path: target, dest: path };
1812 pathModule.toNamespacedPath(path), flags, undefined, ctx);
1814 handleErrorFromBinding(ctx);
1850 const ctx = { path: existingPath, dest: newPath };
1853 undefined, ctx);
1854 handleErrorFromBinding(ctx);
1879 const ctx = { path };
1880 binding.unlink(pathModule.toNamespacedPath(path), undefined, ctx);
1881 handleErrorFromBinding(ctx);
1910 const ctx = {};
1911 binding.fchmod(fd, mode, undefined, ctx);
1912 handleErrorFromBinding(ctx);
1987 const ctx = { path };
1988 binding.chmod(pathModule.toNamespacedPath(path), mode, undefined, ctx);
1989 handleErrorFromBinding(ctx);
2021 const ctx = { path };
2022 binding.lchown(pathModule.toNamespacedPath(path), uid, gid, undefined, ctx);
2023 handleErrorFromBinding(ctx);
2057 const ctx = {};
2058 binding.fchown(fd, uid, gid, undefined, ctx);
2059 handleErrorFromBinding(ctx);
2094 const ctx = { path };
2095 binding.chown(pathModule.toNamespacedPath(path), uid, gid, undefined, ctx);
2096 handleErrorFromBinding(ctx);
2130 const ctx = { path };
2133 undefined, ctx);
2134 handleErrorFromBinding(ctx);
2170 const ctx = {};
2171 binding.futimes(fd, atime, mtime, undefined, ctx);
2172 handleErrorFromBinding(ctx);
2206 const ctx = { path };
2210 undefined, ctx);
2211 handleErrorFromBinding(ctx);
2611 const ctx = { path: base };
2612 binding.lstat(pathModule.toNamespacedPath(base), false, undefined, ctx);
2613 handleErrorFromBinding(ctx);
2653 const ctx = { path: base };
2654 const stats = binding.lstat(baseLong, true, undefined, ctx);
2655 handleErrorFromBinding(ctx);
2676 const ctx = { path: base };
2677 binding.stat(baseLong, false, undefined, ctx);
2678 handleErrorFromBinding(ctx);
2679 linkTarget = binding.readlink(baseLong, undefined, undefined, ctx);
2680 handleErrorFromBinding(ctx);
2697 const ctx = { path: base };
2698 binding.lstat(pathModule.toNamespacedPath(base), false, undefined, ctx);
2699 handleErrorFromBinding(ctx);
2717 const ctx = { path };
2718 const result = binding.realpath(pathModule.toNamespacedPath(path), options.encoding, undefined, ctx);
2719 handleErrorFromBinding(ctx);
2929 const ctx = { path };
2931 undefined, ctx);
2932 handleErrorFromBinding(ctx);
2976 const ctx = { path: src, dest }; // non-prefixed
2981 binding.copyFile(src, dest, mode, undefined, ctx);
2982 handleErrorFromBinding(ctx);