Open DavidTPate opened 9 years ago
Looking through the code I noticed that fs.utimesSync(path, atime, mtime) is being used to update timestamps instead of fs.utimes(path, atime, mtime, callback). Is there any particular reason?
fs.utimesSync(path, atime, mtime)
fs.utimes(path, atime, mtime, callback)
I see that right below the usage of the synchronous method the callback is called, so I presume it could just be updated to execute the callback through the async utimes method instead.
Looking through the code I noticed that
fs.utimesSync(path, atime, mtime)
is being used to update timestamps instead offs.utimes(path, atime, mtime, callback)
. Is there any particular reason?I see that right below the usage of the synchronous method the callback is called, so I presume it could just be updated to execute the callback through the async utimes method instead.