Skip to main content

fs.lutimes

@listenai/lisa_core / Exports / fs / lutimes

Namespace: lutimes

fs.lutimes

Table of contents#

Functions#

Functions#

__promisify__#

promisify(path, atime, mtime): Promise<void>

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.

Parameters#

NameTypeDescription
pathPathLikeA path to a file. If a URL is provided, it must use the file: protocol.
atimestring | number | DateThe last access time. If a string is provided, it will be coerced to number.
mtimestring | number | DateThe last modified time. If a string is provided, it will be coerced to number.

Returns#

Promise<void>

Defined in#

node_modules/@types/node/fs.d.ts:454

  • 没帮助 0