class Filesystem extends Filesystem implements GlobContentLister (View source)

Methods

public
__construct(FilesystemAdapter $adapter, array $config = [], PathNormalizer|null $pathNormalizer = null)

No description

public
FilesystemAdapter
getAdapter()

No description

public
bool
has(string $location)

No description

public
bool
isEmpty(string $location)

Check if a directory is empty

public
iterable
listContentsByGlob(string $folder, string $fileGlob, bool $deep = FilesystemReader::LIST_SHALLOW)

No description

Details

__construct(FilesystemAdapter $adapter, array $config = [], PathNormalizer|null $pathNormalizer = null)

No description

Parameters

FilesystemAdapter $adapter
array $config
PathNormalizer|null $pathNormalizer

FilesystemAdapter getAdapter()

No description

Return Value

FilesystemAdapter

bool has(string $location)

No description

Parameters

string $location

Return Value

bool

bool isEmpty(string $location)

Check if a directory is empty

Parameters

string $location

Return Value

bool

iterable listContentsByGlob(string $folder, string $fileGlob, bool $deep = FilesystemReader::LIST_SHALLOW)

No description

Parameters

string $folder
string $fileGlob
bool $deep

Return Value

iterable