Options
FinalYes
Tags
Methods
- __construct() : mixed
- blockFactory() : BlockFactory
- fileFastPath() : bool
- fromArray() : self
- normalize() : null|S3Options
- partSize() : int<1, max>
- tmpDir() : Path
- withBlockFactory() : self
- withBlockSize() : self
- withFileFastPath() : self
- When enabled (default), list() on a single-file path will first attempt a HEAD on the object.
Methods
__construct()
public
__construct() : mixed
blockFactory()
public
blockFactory() : BlockFactory
Return values
BlockFactoryfileFastPath()
public
fileFastPath() : bool
Return values
boolfromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
-
the shape of normalize()
Tags
Return values
selfnormalize()
public
normalize() : null|S3Options
Return values
null|S3Options —null when the block factory is not the native local one
partSize()
public
partSize() : int<1, max>
Return values
int<1, max>tmpDir()
public
tmpDir() : Path
Return values
PathwithBlockFactory()
public
withBlockFactory(BlockFactory $blockFactory) : self
Parameters
- $blockFactory : BlockFactory
Return values
selfwithBlockSize()
public
withBlockSize(int $bytes) : self
Parameters
- $bytes : int
Return values
selfwithFileFastPath()
When enabled (default), list() on a single-file path will first attempt a HEAD on the object.
public
withFileFastPath([bool $enabled = true ]) : self
If the object exists, list() yields just that single FileStatus and never issues listObjectsV2. This avoids the s3:ListBucket permission requirement and an extra round-trip when reading single files. Disable if your workloads typically pass folder/prefix paths to list(), to skip the (failing) HEAD.
Parameters
- $enabled : bool = true