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 ...
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...
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("..."));
//
//.....
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>...
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 ...
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
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...
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...
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'...
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 ...
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...
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...
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 ...
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...
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 ...
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 ...
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...
© 2022 - 2024 — McMap. All rights reserved.