framework/Mvc/Extensions/Ckfinder/lib/core/connector/php/php5/Utils/FileSystem.php
public static function isEmptyDir($dirname)
    {
      $files = scandir($dirname);
      if ( $files && count($files) > 2)
      {
        return false;
      }
      return true;
    }
public static function isEmptyDir($dirname)
    {
      $files = scandir($dirname);
      if ( $files && count($files) > 2)
      {
        return false;
      }
      return true;
    }
public static function isEmptyDir ( $ dirname ) { $ files = scandir ( $ dirname ) ; if ( $ files && count ( $ files ) > 2 ) { return false ; } return true ; }
Check if given directory is empty

@param string $dirname
@access public
@static
@return bool
Check if given directory is empty