Flow PHP

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
BlockFactory

fileFastPath()

public fileFastPath() : bool
Return values
bool

partSize()

public partSize() : int
Return values
int

tmpDir()

public tmpDir() : Path
Return values
Path

withBlockSize()

public withBlockSize(int $bytes) : self
Parameters
$bytes : int
Return values
self

withFileFastPath()

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
Return values
self

        
On this page

Search results