PluginProbe
Media Cloud Sync / 1.4.2
Media Cloud Sync v1.4.2
1.4.2 1.4.1 1.4.0 1.3.12 1.3.11 1.3.10 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.2.0 1.2.10 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 All 36 releases
media-cloud-sync / includes / base / stream-wrappers / s3.php

s3.php in Media Cloud Sync 1.4.2, at includes/base/stream-wrappers/s3.php

23 lines 606 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Dudlewebs\WPMCS;
3
4 use Dudlewebs\WPMCS\s3\Aws\S3\StreamWrapper;
5
6 defined('ABSPATH') || exit;
7
8 /**
9 * Read-only wrapper for the four S3-family providers (S3, DigitalOcean
10 * Spaces, Cloudflare R2, S3-compatible) — they all construct the identical
11 * vendored Aws\S3\S3Client, so one subclass covers all four.
12 *
13 * @since 1.4.3
14 */
15 class ReadOnlyS3StreamWrapper extends StreamWrapper {
16 use ReadOnlyStreamWrapperTrait;
17
18 /** The one method that isn't shared — only the S3 vendor class implements it. */
19 public function stream_truncate($new_size) {
20 return false;
21 }
22 }
23