BxDolCacheUtilities::_getSizeCache PHP Method

_getSizeCache() public method

public _getSizeCache ( $sPrefix, $sPath )
    function _getSizeCache($sPrefix, $sPath)
    {
        if (!($rHandler = opendir($sPath))) {
            return 0;
        }
        $iSize = 0;
        $l = strlen($sPrefix);
        while (($sFile = readdir($rHandler)) !== false) {
            if (0 === strncmp($sFile, $sPrefix, $l)) {
                $iSize += filesize($sPath . $sFile);
            }
        }
        closedir($rHandler);
        return $iSize;
    }