Closed nichtich closed 1 year ago
I was missing touch and found it had been removed. To update the timestamp of a file, use this function:
touch
async function touchFile(file) { await fs.ensureFile(file) const time = new Date() return fs.utimes(file, time, time) }
I was missing
touch
and found it had been removed. To update the timestamp of a file, use this function: