node/lib/internal/fs/cp
HEESEUNG a81e786463
fs: refactor handleTimestampsAndMode to remove redundant call
Refactored the `handleTimestampsAndMode` function to eliminate the
redundant `setDestTimestampsAndMode` call. This simplifies the function
by ensuring that `setDestTimestampsAndMode` is only called once after
any necessary modifications to file writability.

PR-URL: https://github.com/nodejs/node/pull/54369
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
2024-08-24 16:50:57 +00:00
..
cp-sync.js fs: optimize `fs.cpSync` js calls 2024-07-22 16:00:39 +00:00
cp.js fs: refactor handleTimestampsAndMode to remove redundant call 2024-08-24 16:50:57 +00:00