Skip to content

Error when only single url passed to create() #157

Description

@mb-shirtigo

Hey,

we get a chdir error, when the array contains only one url.
With two or more the zip file is generated without any problems.

Error: Alchemy\Zippy\Exception\RuntimeException: Unable to chdir to https://www.google.de/images/branding/googlelogo/2x

NOT WORKING:
$file = ['https://www.google.de/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'];
$archiveZip = $zippy->create('archive.zip', $file, false);

WORKING:
$file =['https://www.google.de/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png','https://www.google.de/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png'];
$archiveZip = $zippy->create('archive.zip', $file, false);

Any help is appreciated.

Kind regards
Michael

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions