Category "zip"

FileZip compression with cancellation

How to cancel long running compression task and release all resources when using ZipFile.CreateFromDirectory or other ZipFile compression methods in C#. Couldn'

Archive files directly from memory in Python

I'm writing this program where I get a number of files, then zip them with encryption using pyzipper, and also I'm using io.BitesIO() to write these files to it

Node.js Unable to send multiple csv in an archive folder

I'have currently a problem to create and to send an archive from a node.js server. In fact, i succeeded create an archive with 5 csv files on the archive but wh

TypeError: 'ZipFile' object is not callable

I am trying to save the new cropped brain tumor images into the subfolders of TRAIN_CROP, TEST_CROP, and VAL_CROP in the main folder of TRAIN, TEST, and VAL. x

Python throws "zipfile.BadZipFile: Bad CRC-32" ONLY when I pass "D" as password

I'm trying to create a Python script that tests passwords on password protected zip files. The only problem is that whenever I try to pass specifically "D" as t

Python extract zipfile

I want to extract txt files from zip file to Desktop and i got it with the code below but if zip files have file which has text files, how i extract these text

How do I extract and process all the files in a zipfile?

I want to extract and process all the files in a zipped file? import re import zipfile import pathlib import pandas as pd # Download mHealth dataset def parse

How to upload a zip file from a google drive in colab using zip file link

I have a zip file(files.zip) in my google drive. This zipped file is being used in a shared colab file. I want to write a program such that this zipped file is

Is there a way to change the name of the files extracted using zipfile in Python?

I'm trying to extract a csv file from a zip folder and choose its name as it is saved in the new directory. This code is working well to extract the file: impor

How do I determine whether an item in python ZipFile is dir or file?

This is my current system, which just looks to see whether there is a period in the path... but that doesn't work in all cases with ZipFile(zipdata, 'r') as

AWS Lambda upload by zip file not working

When I try to upload new version to a function in AWS Lambda, the option to upload a zip file is not allowed. (See the picture bellow) It used to be able to ch

Different File Paths in Python ZipFile Depending on .write() vs .writestr()

I just wanted to ask quickly if the behavior I'm seeing in Python's zipfile module is expected... I wanted to put together a zip archive. For reasons I don't th

Different File Paths in Python ZipFile Depending on .write() vs .writestr()

I just wanted to ask quickly if the behavior I'm seeing in Python's zipfile module is expected... I wanted to put together a zip archive. For reasons I don't th

Python zipfile extract files from directory inside a zip file

I need to extract some files inside a directory in a zip file. The main problem is that I want to extract only the contents from this directory, not the directo

Zip Command not found in Jenkins

I am trying to zip a directory in a Jenkins pipeline, my code is similar to this stages { stage('ZIP') { steps {

How to read all zipfile in python

I have a zipfile for example, i changed some files in zip and i need to encrypt it and after that save def encrypt(self, zipfile: ZipFile): import base64

Why I can not find zipfile library in PyCharm (2019 3.3)

I am using PyCharm 2019 3.3. Python version: 3.7 in my pip install I am getting an error as below Could not find a version that satisfies the requirement zipfil

How to copy file from Azure fileshare and zip it and move to some other place?

I have been using method in which I am taking data in bytes then creating zip file and then uploading it back to required location but I need something which is

How do I save a FastAPI UploadFile which is a zip file to disk as .zip?

I'm uploading zip files as UploadFile via FastAPI and want to save them to the filesystem using async aiofiles like so: async def upload(in_file: UploadFile = F

how to fix Zip Path Traversal Vulnerability In Android

I have an app that has startapp(0.5.1) ads, but after reviewing, I got the following error: Your app has an unsafe decompression pattern that could lead to a "s