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

    Parameters

    • fd: number

      A file descriptor.

    • Optional len: null | number

      If not specified, defaults to 0.

    Returns Promise<void>