public function LocalReadOnlyStream::stream_truncate in System stream wrapper 8
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 LocalStream::stream_truncate
File
- src/
StreamWrapper/ LocalReadOnlyStream.php, line 130
Class
- LocalReadOnlyStream
- Defines a read-only Drupal stream wrapper base class for local files.
Namespace
Drupal\system_stream_wrapper\StreamWrapperCode
public function stream_truncate($new_size) {
trigger_error('stream_truncate() not supported for read-only stream wrappers', E_USER_WARNING);
return FALSE;
}