Zipper icon indicating copy to clipboard operation
Zipper copied to clipboard

Chumper\Zipper\Zipper::make(): Cannot destroy the zip context

Open Danjavia opened this issue 9 years ago • 0 comments

Cannot create the next structure -zip -folder -subfolder -file -subfolder -file -file

The code is here: $zip = storage_path() . '/app/downloads/' . $theme[ 'slug' ] . '.zip';

        $zipper->make( $zip )->folder( 'assets/css' )->add( storage_path() . '/app/assets/theme.css' );

        $zipper->zip( $zip )->folder( 'assets/js' )->add( storage_path() . '/app/assets/js.js' );
        $zipper->zip( $zip )->folder( 'assets/js' )->add( storage_path() . '/app/assets/app.js' );
        $zipper->zip( $zip )->add( storage_path() . '/app/user.1/' . $theme[ 'slug' ] . '/index.html' );

Danjavia avatar Sep 09 '15 15:09 Danjavia