libimobiledevice  1.3.0
API Documentation - Return to Homepage

◆ afc_truncate()

afc_error_t afc_truncate ( afc_client_t  client,
const char *  path,
uint64_t  newsize 
)

Sets the size of a file on the device without prior opening it.

Parameters
clientThe client to use to set the file size.
pathThe path of the file to be truncated.
newsizeThe size to set the file to.
Returns
AFC_E_SUCCESS on success or an AFC_E_* error value.