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

cannot create zip archive. #50

Closed
makasim opened this issue Oct 1, 2013 · 5 comments
Closed

cannot create zip archive. #50

makasim opened this issue Oct 1, 2013 · 5 comments

Comments

@makasim
Copy link

makasim commented Oct 1, 2013

The doc says I can do this way:

<?php
$zippy = Zippy::load();
$zippy->create('archive.zip');

but this code throws an exception Unable to create archive from Zippy.php at line 63 and previous exception NotSupportedException: Can not create empty zip archive from ZipAdapter.php at line 51

@romainneutron
Copy link
Contributor

Zippy does not require a content to create an archive, but some adapter do. I'm gonna update the doc.

Your exception is a NotSupportedException. It means the adapter you're using does not support empty zip archives.

@vschoener
Copy link

Same issue for me, I'm working on mac. Do I need to install extra binaries ?
I tried different extension but the command appear to be wrong on this os.

Here is the error when I use "tar" :

Unable to execute the following command '/usr/bin/bsdtar' '--create' '-' '--files-from /dev/null' '> /Users/vince/work/web/ps/designerbox/modules/invoices/invoices.tar' {output: bsdtar: Option --files-from /dev/null is not supported Usage: List: bsdtar -tf Extract: bsdtar -xf Create: bsdtar -cf [filenames...] Help: bsdtar --help }

@romainneutron
Copy link
Contributor

Hello @sdevilcry

It's not the same issue, you're creating a tar archive (this issue was about the zip adapter). Can you fill a new issue, providing the code snippet and exception name/message ?

@vschoener
Copy link

Sure I can, but my first issue was the same as @makasim then I tried with tar and got a new issue.

Gonna create an issue for the tar.

Any idea about the "zip" ?

@thecodecafe
Copy link

@romainneutron I tried using Zippy on laravel 4 but all i get is an error saying "Unable to create archive" can you help?

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

4 participants