示例#1
0
 /**
  * Check whether the given file has the content.
  *
  * @param string $filename Target file name
  * @return bool Returns TRUE if the file exists and contains something.
  */
 public static function hasContent($filename)
 {
     return Rhymix\Framework\Storage::getSize(self::getRealPath($filename)) > 0;
 }