zip Questions

6

Solved

Given there is a secret file deep inside a nested ZIP file, i.e. a zip file inside a zip file inside a zip file, etc... The zip files are named 1.zip, 2.zip, 3.zip, etc... We don't know how deep ...
Dialysis asked 10/12, 2015 at 18:10

6

Solved

I am building a system for people to upload .tar (and .tar.gz, .tar.bz2, .zip, etc) files in PHP. Uploading the files is fine, but I would like to list files contained in the archive after it has b...
Crapshooter asked 2/2, 2011 at 19:14

5

The only way I came up for deleting a file from a zipfile was to create a temporary zipfile without the file to be deleted and then rename it to the original filename. In python 2.4 the ZipInfo cl...
Algicide asked 4/2, 2009 at 23:0

5

I'm trying to extract user-submitted zip and tar files to a directory. The documentation for zipfile's extractall method (similarly with tarfile's extractall) states that it's possible for paths to...
Dun asked 8/4, 2012 at 3:7

5

Solved

I'm a bit confused. I know that an empty zip is not legal. But what about this sample snippet: ZipOutputStream zos = null; try { zos = new ZipOutputStream(new FileOutputStream("...")); // //.....
Mother asked 13/1, 2011 at 15:1

3

Solved

I'm trying to create backups of my USB key. For that, I'd need to zip the content of my USB key (/Volumes/<USB KEY NAME>/). I have this code for the moment zip -r /Volumes/<USB KEY NAME&gt...
Spiller asked 21/3, 2017 at 18:8

14

Solved

I am currently extracting the contents of a war file and then adding some new files to the directory structure and then creating a new war file. This is all done programatically from Java - but I ...
Aeneid asked 8/2, 2010 at 17:15

7

Solved

I want to display OpenOffice files, .odt and .odp at client side using a web browser. These files are zipped files. Using Ajax, I can get these files from server but these are zipped files. I hav...
Nonsectarian asked 19/1, 2010 at 17:54

4

Can somebody please explain the following mystery? I created a binary file of size ~37[MB]. zipping it in Ubuntu -- using the terminal -- took less than 1[sec]. I then tried python: zipping it pro...
Himes asked 14/2, 2011 at 22:16

9

Solved

we have a piece of code which generates a zip file on our system. Everything is ok, but sometimes this zip file while opened by FilZip or WinZip is considered to be corrupted. So here is my questi...
Maturation asked 18/1, 2010 at 11:30

7

Solved

I am using java.util.Zip and java.util.ZipEntry to successfully extra a zip file's contents to disk. I would like to maintain the file permissions set when extracting on a *nix file-system. Can an...
Rhinoplasty asked 26/6, 2009 at 18:32

14

Solved

I have a Python script that zips a file (new.txt): tofile = "/root/files/result/"+file targetzipfile = new.zip # This is how I want my zip to look like zf = zipfile.ZipFile(targetzipfile, mode='w'...
Boiled asked 16/1, 2015 at 19:52

12

Solved

Given the following Scala List: val l = List(List("a1", "b1", "c1"), List("a2", "b2", "c2"), List("a3", "b3", "c3")) How can I get: List(("a1", "a2", "a3"), ("b1", "b2", "b3"), ("c1", "c2", "c3...
Redeem asked 2/11, 2009 at 23:49

4

I would like to know if there is any class in Qt which can zip a folder or file. I used QProcess to compress, it got compressed but I am unable to uncompress it using a normal zip tool. Can anyone ...
Wolfhound asked 8/4, 2010 at 7:3

6

Solved

I have archive.zip with two files: hello.txt and world.txt I want to overwrite hello.txt file with new one with that code: import zipfile z = zipfile.ZipFile('archive.zip','a') z.write('hello.tx...
Synthesis asked 11/1, 2011 at 3:0

4

I'd like to create a zip which stores two different files with the same name, but I'm unable (using java.util.zip.ZipOutputStream) due to java.util.zip.ZipException: duplicate entry: exceptio...
Assonance asked 10/10, 2016 at 12:37

2

I'm currently working on one Node.js project. I want to have an ability to read, modify and write ZIP file without saving it into FS (we receive it by TCP and send it back after modifications were ...
zip
Constellate asked 28/12, 2017 at 14:53

3

Solved

I am writing a nodejs script which should do the following: Download a zip file Remove the top level directory of the zip file (moving all files one folder up) Upload the new zip file Because t...
Petrous asked 9/6, 2016 at 16:42

1

I'm trying to create a zip file on the fly of a directory and return it to the user over a Flask App. The below works great for smaller directories but I'd also like to achieve this with large dire...
Seethe asked 7/11, 2022 at 2:1

8

Solved

I'm trying to create a zip file in Kotlin. this is the code: fun main(args: Array<String>) { var files: Array<String> = arrayOf("/home/matte/theres_no_place.png", "/home/matte/vladstud...
Committee asked 14/9, 2017 at 14:44

8

Solved

I am getting zip file downloaded by following code without any error but the downloaded zip file is empty or corrupted and size is always about 200 Bytes. i.e. I cannot open that zip file. Also Zip...
Pall asked 9/2, 2013 at 22:1

5

Solved

I need to create a ZIP file in node.js, protected by a password. I am using "node-zip" module, that unfortunately doesn't support password protection: var zip = new require('node-zip')(); zip.fil...
Airworthy asked 12/2, 2013 at 9:57

9

Solved

I need to download images from other websites to my server. Create a ZIP file with those images. automatically start download of created ZIP file. once download is complete the ZIP file and images ...
Salience asked 9/4, 2011 at 8:36

13

Solved

I've got a large amount of data (a couple gigs) I need to write to a zip file in Python. I can't load it all into memory at once to pass to the .writestr method of ZipFile, and I really don't want ...
Sevigny asked 17/11, 2008 at 23:27

11

Is there any sample code, how to practically unzip folder from ZIP into my desired directory? I have read all files from folder "FOLDER" into byte array, how do I recreate from its file s...
Groh asked 17/5, 2012 at 10:5

© 2022 - 2024 — McMap. All rights reserved.