Symfony\Installer\DownloadCommand::isEmptyDirectory PHP Метод

isEmptyDirectory() защищенный Метод

Checks whether the given directory is empty or not.
protected isEmptyDirectory ( string $dir ) : boolean
$dir string the path of the directory to check
Результат boolean Whether the given directory is empty
    protected function isEmptyDirectory($dir)
    {
        // glob() cannot be used because it doesn't take into account hidden files
        // scandir() returns '.'  and '..'  for an empty dir
        return 2 === count(scandir($dir . '/'));
    }