* Synchronously changes the access and modification * times of a file in the same way as `fs.utimesSync()`. * @param {string | Buffer | URL} path * @param {number | string | Date} atime * @param {number | string | Date} mtime * @returns {void}
(path, atime, mtime)
| 2743 | * @returns {void} |
| 2744 | */ |
| 2745 | function lutimesSync(path, atime, mtime) { |
| 2746 | path = getValidatedPath(path); |
| 2747 | |
| 2748 | const h = vfsState.handlers; |
| 2749 | if (h !== null) { |
| 2750 | const result = h.lutimesSync(path, atime, mtime); |
| 2751 | if (result !== undefined) return; |
| 2752 | } |
| 2753 | |
| 2754 | binding.lutimes( |
| 2755 | path, |
| 2756 | toUnixTimestamp(atime), |
| 2757 | toUnixTimestamp(mtime), |
| 2758 | ); |
| 2759 | } |
| 2760 | |
| 2761 | function writeAll(fd, isUserFd, buffer, offset, length, signal, flush, callback) { |
| 2762 | if (signal?.aborted) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…