Bravo3\Orm\Drivers\Filesystem\Io\PharIoDriver::scan PHP Method

scan() public method

Get a list of keys in the archive
public scan ( string $base, string $filter ) : string[]
$base string Base path to list all keys from
$filter string Key filter, @see docs/Queries.md - Wildcards
return string[]
    public function scan($base, $filter)
    {
        $root = (string) $this->archive[$base];
        $key_filter = $this->getKeyFilter();
        $out = [];
        foreach (scandir($root) as $file) {
            if (is_file($root . DIRECTORY_SEPARATOR . $file) && $key_filter->match($file, $filter)) {
                $out[] = $base . DIRECTORY_SEPARATOR . $file;
            }
        }
        return $out;
    }