コード例 #1
0
ファイル: FileHandler.class.php プロジェクト: rhymix/rhymix
 /**
  * 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;
 }