Function utimes

  • Change the file system timestamps of the object referenced by path.

    The atime and mtime arguments follow these rules:

    • Values can be either numbers representing Unix epoch time in seconds,Dates, or a numeric string like '123456789.0'.
    • If the value can not be converted to a number, or is NaN, Infinity, or-Infinity, an Error will be thrown.

    Parameters

    Returns void

    Since

    v0.4.2

    See

  • Change the file system timestamps of the object referenced by path.

    The atime and mtime arguments follow these rules:

    • Values can be either numbers representing Unix epoch time in seconds,Dates, or a numeric string like '123456789.0'.
    • If the value can not be converted to a number, or is NaN, Infinity, or-Infinity, an Error will be thrown.

    Parameters

    Returns Promise<void>

    Since

    v0.4.2

    See

Methods

  • Asynchronously change file timestamps of the file referenced by the supplied path.

    Parameters

    • path: PathLike

      A path to a file. If a URL is provided, it must use the file: protocol.

    • atime: TimeLike

      The last access time. If a string is provided, it will be coerced to number.

    • mtime: TimeLike

      The last modified time. If a string is provided, it will be coerced to number.

    Returns Promise<void>

Generated using TypeDoc