Function ftruncate

  • Shorten (truncate) a file.

    Parameters

    Returns void

  • Shorten (truncate) a file.

    Parameters

    • fd: number

      file descriptor

    • len: number

      maximum length of file

    • callback: NoParamCallback

      callback (err)

    Returns void

  • Shorten (truncate) a file.

    Parameters

    • fd: number

      file descriptor

    • Optional len: number

      maximum length of file [0]

    Returns Promise<void>

Generated using TypeDoc