isDirEmpty

Checks if a directory is empty.

bool
isDirEmpty
(
string dir
)

Parameters

dir string

The directory to check.

Return Value

Type: bool

True if the given directory exists, is a directory, and is empty.

Meta