public function DrupalLocalStreamWrapper::stream_truncate in Drupal 7
Truncate stream.
Will respond to truncation; e.g., through ftruncate().
Parameters
int $new_size: The new size.
Return value
bool TRUE on success, FALSE otherwise.
File
- includes/
stream_wrappers.inc, line 634 - Drupal stream wrapper interface.
Class
- DrupalLocalStreamWrapper
- Drupal stream wrapper base class for local files.
Code
public function stream_truncate($new_size) {
return ftruncate($this->handle, $new_size);
}