public function remove($fileToRemove)
    {
        if (is_array($fileToRemove)) {
            $self = $this;
            $this->repository->each(function ($file) use ($fileToRemove, $self) {
                if (starts_with($file, $fileToRemove)) {
                    $self->getRepository()->removeFile($file);
                }
            });
        } else {
            $this->repository->removeFile($fileToRemove);
        }

        return $this;
    }
public function remove($fileToRemove)
    {
        if (is_array($fileToRemove)) {
            $self = $this;
            $this->repository->each(function ($file) use ($fileToRemove, $self) {
                if (starts_with($file, $fileToRemove)) {
                    $self->getRepository()->removeFile($file);
                }
            });
        } else {
            $this->repository->removeFile($fileToRemove);
        }

        return $this;
    }
public function remove ( $ fileToRemove ) { if ( is_array ( $ fileToRemove ) ) { $ self = $ this ; $ this -> repository -> each ( function ( $ file ) use ( $ fileToRemove , $ self ) { if ( starts_with ( $ file , $ fileToRemove ) ) { $ self -> getRepository ( ) -> removeFile ( $ file ) ; } } ) ; } else { $ this -> repository -> removeFile ( $ fileToRemove ) ; } return $ this ; }
Remove a file or array of files and folders from the zip archive

@param $fileToRemove array|string The path/array to the files in the zip

@return $this Zipper instance
Remove a file or array of files and folders from the zip archive