Код: Выделить всё
function openSync(path, flags, mode) {
return binding.open(path, stringToFlags(flags), mode);
}
function readFileSync(path, options) {
const fd = isUserFd ? path : fs.openSync(path, options.flag, 0o666);
//more code
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... file-in-no
Мобильная версия