src/core/framework/core/3rdparty/ezcomponents/Base/src/file.php
static protected function findRecursiveCallback( ezcBaseFileFindContext $context, $sourceDir, $fileName, $fileInfo )
    {
        // ignore if we have a directory
        if ( $fileInfo['mode'] & 0x4000 )
        {
            return;
        }

        // update the statistics
        $context->elements[] = $sourceDir . DIRECTORY_SEPARATOR . $fileName;
        $context->count++;
        $context->size += $fileInfo['size'];
    }
static protected function findRecursiveCallback( ezcBaseFileFindContext $context, $sourceDir, $fileName, $fileInfo )
    {
        // ignore if we have a directory
        if ( $fileInfo['mode'] & 0x4000 )
        {
            return;
        }

        // update the statistics
        $context->elements[] = $sourceDir . DIRECTORY_SEPARATOR . $fileName;
        $context->count++;
        $context->size += $fileInfo['size'];
    }
static protected function findRecursiveCallback ( ezcBaseFileFindContext $ context , $ sourceDir , $ fileName , $ fileInfo ) { // ignore if we have a directory if ( $ fileInfo [ 'mode' ] & 0x4000 ) { return ; } // update the statistics $ context -> elements [ ] = $ sourceDir . DIRECTORY_SEPARATOR . $ fileName ; $ context -> count ++ ; $ context -> size += $ fileInfo [ 'size' ] ; }
This is the callback used by findRecursive to collect data.

This callback method works together with walkRecursive() and is called
for every file/and or directory. The $context is a callback specific
container in which data can be stored and shared between the different
calls to the callback function. The walkRecursive() function also passes
in the full absolute directory in $sourceDir, the filename in $fileName
and file information (such as size, modes, types) as an array as
returned by PHP's stat() in the $fileInfo parameter.

@param ezcBaseFileFindContext $context
@param string $sourceDir
@param string $fileName
@param array(stat) $fileInfo
This is the callback used by findRecursive to collect data .