Skip to content

Kirby 4.2.0

Dir::isEmpty()

Checks if the folder has any contents

Dir::isEmpty(string $dir): bool

Parameters

Name Type Default
$dir * string

Return type

bool

Parent class

Kirby\Filesystem\Dir