Options
FinalYes
Methods
- __construct() : mixed
- blockFactory() : BlockFactory
- fileFastPath() : bool
- partSize() : int
- tmpDir() : Path
- 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
boolpartSize()
public
partSize() : int
Return values
inttmpDir()
public
tmpDir() : Path
Return values
PathwithBlockSize()
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