27 public function hasDir(
string $path) : bool;
38 public function listContents(
string $path =
'',
bool $recursive =
false) : array;
An exception for terminatinating execution or to throw for unit testing.
Class DirectoryNotFoundException Indicates that the directory is missing or not found.
Interface DirectoryReadAccess Defines the readonly directory access operations of the filesystem.
hasDir(string $path)
Checks whether the directory exists or not.
listContents(string $path='', bool $recursive=false)
Lists the content of a directory.