Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Uncaught Alchemy\Zippy\Exception\FormatNotSupportedException: No strategy for extension in #145

Open
JosephShenton opened this issue Jun 3, 2018 · 0 comments

Comments

@JosephShenton
Copy link

Hi, I get this error: Fatal error: Uncaught Alchemy\Zippy\Exception\FormatNotSupportedException: No strategy for extension in

I am wondering why when it is a .bz2 file which is supposedly supported.

Here is my code:

$filename = "Packages".($isBZ2Archive ? ".bz2" : ".gz");
                echo $filename;

                if (!file_exists('repos/'.$repoInfo['name'])) {
                    mkdir('repos/'.$repoInfo['name'], 0777);
                }

                if (file_put_contents('repos/'.$repoInfo['name'].'/'.$filename, $this->downloadFile($packagesURL, "Telesphoreo"))) {

                } else {
                	return "Line 269";
                }

                $zippy = Zippy::load();

                $archive = $zippy->open('repos/'.$repoInfo['name'].'/'.$filename);

                $archive->extract('repos/'.$repoInfo['name'].'/'.$filename);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant