Questions tagged [zip]

ZIP is a format for compressed file archives, allowing packaging of multiple files and directories into a single file.

The specification for the standard is provided by PKWARE, a commercial company that sells compression software. There are multiple independent implementations of ZIP readers and writers, both libraries and finished programs, available on multiple platforms.

Implementations

There are implementations for handling files in ZIP format for many languages:

11022 questions
4
votes
3 answers

Osmdroid offline file

I have an osmdroid map, and i want to load offline tiles from either MOBAC's osmdroid zip or gemf file. I looked into it and everywhere i go it says just put it in sdcard/osmdroid. But it doesnt work, do i need to change something in the code? …
perzsa
  • 291
  • 4
  • 13
4
votes
2 answers

Exception thrown by target of invocation in BackgroundWorker

I have the following code: public void extractZipFile() { if (!System.IO.Directory.Exists(extractDirectory)) System.IO.Directory.CreateDirectory(extractDirectory); BackgroundWorker worker = new BackgroundWorker(); …
davidweitzenfeld
  • 1,021
  • 2
  • 15
  • 38
4
votes
2 answers

Zipping files in a folder without a parent folder in the zipped file

This maybe a silly question to most, but I have the following folder, which I want to zip. FolderI Folder1 Folder2 Folder3 .. .. FolderN Now, zipping up FolderI into a zipFile.zip is pretty easy because of so many resources…
Bruner
  • 43
  • 1
  • 8
4
votes
2 answers

How to add files to zip archive without a intermediate folder

I'm using zip program in a bash script and i would like to create an archive containing all files in a folder without adding the folder itself to the archive. I have such files : script.sh files/ files/1 files/2 I'm using this command in…
ibi0tux
  • 2,481
  • 4
  • 28
  • 49
4
votes
1 answer

Batch - Extract many zip, rename files extracted in a same directory

Hi, I have many zip files located at g:\toto. These zips contain some files. I would like to extract all zip in a same directory (g:\toto\extracted) then rename various files of the zip. Example 1 : www_12567.vp.zip : 3 files : alpha.doc, beta.xls,…
4
votes
1 answer

php - extract files from folder in a zip

I have a zip file containing one folder, that contains more folders and files, like this: myfile.zip -firstlevel --folder1 --folder2 --folder3 --file1 --file2 Now, I want to extract this file using PHPs ZipArchive, but without the "firstlevel"…
Harmageddon
  • 61
  • 1
  • 4
4
votes
3 answers

PHP: how to open a zip

is there an easy way to open and create a zip with PHP?
Ron
  • 43
  • 2
4
votes
1 answer

How to check if entry is file or folder using Python's standard library zipfile?

I have a zip file and I need to check if a file is a folder or a file without extracting them. I could check it using file_size property of infolist if it is 0 but this is the same for a file with 0 size. So it is not useful. I looked on the ZIP…
Eduard Florinescu
  • 16,747
  • 28
  • 113
  • 179
4
votes
4 answers

Unzip files using hadoop streaming

I have many files in HDFS, all of them a zip file with one CSV file inside it. I'm trying to uncompress the files so I can run a streaming job on them. I tried: hadoop jar /usr/lib/hadoop-mapreduce/hadoop-streaming.jar \ -D mapred.reduce.tasks=0…
Miki Tebeka
  • 13,428
  • 4
  • 37
  • 49
4
votes
2 answers

NIO2: how to generically map a URI to a Path?

I'm trying to find an easy way to map a URI to a Path without writing code specific to any particular file system. The following seems to work but requires a questionable technique: public void process(URI uri) throws IOException { try { …
cambecc
  • 4,083
  • 1
  • 23
  • 24
4
votes
1 answer

Adding a status (file integrity)check to a cbr cbz converting bash script

First post, so Hi! Let me start by saying I'm a total noob regarding programming. I understand very basic stuff, but when it comes to checking exit codes or what the adequate term is, I'm at a loss. Apparently my searchfoo is really weak in this…
4
votes
3 answers

How to create ZIP files with specific encoding

On my Linux server I have some files with accented names (test-éàïù.zip). When I add them to a new ZIP file using 7zip command-line tool, the charset/encoding information is not saved and when opened on a Windows computer, the archive does not…
user176681
4
votes
2 answers

How to debug NullPointerException occurred in library code?

I am extracting a ZIP file in java: ZipFile zipFile = new ZipFile(theZipFile); Enumeration zipEntries = zipFile.entries(); while(zipEntries.hasMoreElements()){ ZipEntry entry = zipEntries.nextElement(); ///…
sarahTheButterFly
  • 1,894
  • 3
  • 22
  • 36
4
votes
2 answers

Compression library for C / C++ able to deal with more than 32 bit elements in the array

I have a problem in the fact that I need to compress around a 6 GB std::vector() (1.5 billion floats in it), and up to now I have used lz4, but it only handles int count of chars. Since I have 6 billion chars in my vector, that would need 33bit to…
SinisterMJ
  • 3,425
  • 2
  • 33
  • 53
4
votes
3 answers

How can I unzip a symbolic link using maven?

I have symbolic links that are stored in a zip file. When unzipping that file using Mac OS system, the symbolic links are maintained (that's to say they are symbolic links and appaer as such). But, when unzipping them using maven (and specifically…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
1 2 3
99
100