Options
All
  • Public
  • Public/Protected
  • All
Menu

Callable

  • utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date, callback: NoParamCallback): void
  • 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: string | number | Date

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

    • mtime: string | number | Date

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

    • callback: NoParamCallback

    Returns void

Index

Functions

Functions

__promisify__

  • __promisify__(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise<void>
  • 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: string | number | Date

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

    • mtime: string | number | Date

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

    Returns Promise<void>

Generated using TypeDoc