something like that:
```


                $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator("{$this->locations['old_versions']}{$package_name}/{$line}"));
                foreach ($iterator as $file_info)
                {
                    if ($file_info->isFile())
                    {
                        $result[] = substr($file_info->getRealPath(), strlen("{$this->locations['old_versions']}{$package_name}/"));
                    }
                }
```