src/Textpattern/Composer/Installer/Plugin/Base.php
protected function find($directory)
    {
        if (!file_exists($directory) || !is_dir($directory) || !is_readable($directory)) {
            return false;
        }

        $iterator = new \RecursiveDirectoryIterator(realpath($directory));
        return new \RecursiveIteratorIterator($iterator);
    }
protected function find($directory)
    {
        if (!file_exists($directory) || !is_dir($directory) || !is_readable($directory)) {
            return false;
        }

        $iterator = new \RecursiveDirectoryIterator(realpath($directory));
        return new \RecursiveIteratorIterator($iterator);
    }
protected function find ( $ directory ) { if ( ! file_exists ( $ directory ) || ! is_dir ( $ directory ) || ! is_readable ( $ directory ) ) { return false ; } $ iterator = new \ RecursiveDirectoryIterator ( realpath ( $ directory ) ) ; return new \ RecursiveIteratorIterator ( $ iterator ) ; }
Lists the package contents.

@param  string                         $directory
@return RecursiveIteratorIterator|bool
Lists the package contents .