Skip to content

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

Description

@JosephShenton

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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions