/**
 * Determine if the given path is a directory.
 *
 * @return bool Returns TRUE if the given path exists and is a directory, FALSE otherwise.
 */
public function isDirectory(): bool

Examples

if ($filesystem->directory('/foo')->isDirectory()) {
    // do something...
}

Getting Started

Methods

Filesystem
File
Directory