Skip to content

Lutimes

[<Interface>]
type Lutimes =
    abstract member Invoke (path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback) : unit
    abstract member __promisify__ (path: PathLike, atime: TimeLike, mtime: TimeLike) : Promise<unit>
AssemblyXantham.Fable.Node

Methods

abstract member Invoke (path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback) : unit

Changes the access and modification times of a file in the same way as 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.

No arguments other than a possible exception are given to the completion callback.

@since v14.5.0, v12.19.0

abstract member __promisify__ (path: PathLike, atime: TimeLike, mtime: TimeLike) : Promise<unit>

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.

Parameter
pathA path to a file. If a URL is provided, it must use the file: protocol.
atimeThe last access time. If a string is provided, it will be coerced to number.
mtimeThe last modified time. If a string is provided, it will be coerced to number.