Skip to content

Futimes

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

Methods

abstract member Invoke (fd: float, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback) : unit

Change the file system timestamps of the object referenced by the supplied file descriptor. See utimes.

@since v0.4.2

abstract member __promisify__ (fd: float, atime: TimeLike, mtime: TimeLike) : Promise<unit>

Asynchronously change file timestamps of the file referenced by the supplied file descriptor.

Parameter
fdA file descriptor.
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.