You are here

public function S3fsStream::stream_truncate in S3 File System 4.0.x

Same name and namespace in other branches
  1. 8.3 src/StreamWrapper/S3fsStream.php \Drupal\s3fs\StreamWrapper\S3fsStream::stream_truncate()
  2. 8.2 src/StreamWrapper/S3fsStream.php \Drupal\s3fs\StreamWrapper\S3fsStream::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.

Overrides PhpStreamWrapperInterface::stream_truncate

See also

ftruncate()

http://php.net/manual/en/streamwrapper.stream-truncate.php

File

src/StreamWrapper/S3fsStream.php, line 817

Class

S3fsStream
Defines a Drupal s3 (s3://) stream wrapper class.

Namespace

Drupal\s3fs\StreamWrapper

Code

public function stream_truncate($new_size) {

  // phpcs:disable
  return FALSE;
}