fsPromises.lutimes(path, atime, mtime)
以与 fsPromises.utimes()
相同的方式更改文件的访问和修改时间,不同之处在于如果路径引用符号链接,则该链接不会取消引用:相反,符号链接本身的时间戳被改变了。
¥Changes the access and modification times of a file in the same way as
fsPromises.utimes()
, with the difference that if the path refers to a
symbolic link, then the link is not dereferenced: instead, the timestamps of
the symbolic link itself are changed.