Yosymfony\Spress\Scaffolding\NewSite::isEmptyDir PHP Method

isEmptyDir() private method

private isEmptyDir ( $path )
    private function isEmptyDir($path)
    {
        if ($this->fs->exists($path) === true) {
            $finder = new Finder();
            $finder->in($path);
            $iterator = $finder->getIterator();
            $iterator->next();
            return iterator_count($iterator) === 0;
        }
        return true;
    }