public LocalStream::stream_truncate($new_size)
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.
Overrides PhpStreamWrapperInterface::stream_truncate
File
- core/lib/Drupal/Core/StreamWrapper/LocalStream.php, line 360
Class
- LocalStream
- Defines a Drupal stream wrapper base class for local files.
Namespace
Drupal\Core\StreamWrapper
Code
public function stream_truncate($new_size) { return ftruncate($this->handle, $new_size); }
Please login to continue.