• Asynchronous truncate(2) - Truncate a file to a specified length.

    Parameters

    • path: PathLike

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

    • Optional len: null | number

      If not specified, defaults to 0.

    Returns Promise<void>