Function lutimes

  • 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.

    Parameters

    Returns void

    Since

    v14.5.0, v12.19.0

    See

  • 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.

    Parameters

    Returns Promise<void>

    Since

    v14.5.0, v12.19.0

    See

Methods

  • 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

    • 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