function DrupalLocalStreamWrapper::stream_truncate
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 640
Class
- DrupalLocalStreamWrapper
- Drupal stream wrapper base class for local files.
Code
public function stream_truncate($new_size) {
return ftruncate($this->handle, $new_size);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.