application/Espo/Core/Utils/File/Manager.php
public function isDirEmpty($path)
    {
        if (is_dir($path)) {
            $fileList = $this->getFileList($path, true);

            if (is_array($fileList) && empty($fileList)) {
                return true;
            }
        }

        return false;
    }
public function isDirEmpty($path)
    {
        if (is_dir($path)) {
            $fileList = $this->getFileList($path, true);

            if (is_array($fileList) && empty($fileList)) {
                return true;
            }
        }

        return false;
    }
public function isDirEmpty ( $ path ) { if ( is_dir ( $ path ) ) { $ fileList = $ this -> getFileList ( $ path , true ) ; if ( is_array ( $ fileList ) && empty ( $ fileList ) ) { return true ; } } return false ; }
Check if directory is empty
@param  string  $path
@return boolean
Check if directory is empty