array files(string $directory) Get an array of all files in a directory. Parameters string $directory Return Value array
array files(string|null $directory = null, bool $recursive = false) Get an array of all files in a directory. Parameters string|null $directory bool $recursive Return Value array
string extension(string $path) Extract the file extension from a file path. Parameters string $path Return Value string
bool exists(string $path) Determine if a file or directory exists. Parameters string $path Return Value bool
bool exists(string $path) Determine if a file exists. Parameters string $path Return Value bool
string dirname(string $path) Extract the parent directory from a file path. Parameters string $path Return Value string
array directories(string $directory) Get all of the directories within a given directory. Parameters string $directory Return Value array
array directories(string|null $directory = null, bool $recursive = false) Get all of the directories within a given directory. Parameters string|null $directory bool $recursive Return Value array
bool deleteDirectory(string $directory, bool $preserve = false) Recursively delete a directory. The directory itself may be optionally preserved. Parameters string $directory bool $preserve Return Value bool
bool deleteDirectory(string $directory) Recursively delete a directory. Parameters string $directory Return Value bool
Page 663 of 996