Lines Matching defs:mode
152 chmod(mode) {
153 return fsCall(fchmod, this, mode);
483 if ((statFields[1/* mode */] & S_IFMT) === S_IFREG) {
553 async function access(path, mode = F_OK) {
556 mode = getValidMode(mode, 'access');
557 return binding.access(pathModule.toNamespacedPath(path), mode,
568 async function copyFile(src, dest, mode) {
571 mode = getValidMode(mode, 'copyFile');
574 mode,
580 async function open(path, flags, mode) {
583 mode = parseFileMode(mode, 'mode', 0o666);
586 flagsNumber, mode, kUsePromises));
752 options = { mode: options };
756 mode = 0o777,
762 parseFileMode(mode, 'mode', 0o777), recursive,
902 async function fchmod(handle, mode) {
903 mode = parseFileMode(mode, 'mode');
904 return binding.fchmod(handle.fd, mode, kUsePromises);
907 async function chmod(path, mode) {
909 mode = parseFileMode(mode, 'mode');
910 return binding.chmod(pathModule.toNamespacedPath(path), mode, kUsePromises);
913 async function lchmod(path, mode) {
918 return handleFdClose(fchmod(fd, mode), fd.close);
988 options = getOptions(options, { encoding: 'utf8', mode: 0o666, flag: 'w' });
1002 const fd = await open(path, flag, options.mode);
1012 options = getOptions(options, { encoding: 'utf8', mode: 0o666, flag: 'a' });