0
Hello, I am trying to open a python zip file whose name does not have a pattern. EX: demanda_prd_499118.zip This number changes all the time, keeping only the written demanda_prd
Is there anything he understands in this logic: demanda_prd*. zip ? I can always leave the folder with 1 file or tb if possible that it understands the newest file
import zipfile
import os
os.chdir ('C:/Users/frsiq/Downloads/fabinho') #vai para a pasta que contém o exemplo.zip
exemploZIP = zipfile.ZipFile ("demanda_prd_499118.zip")
exemploZIP.extractall() #extrai todos os arquivos para a pasta atual
exemploZIP.close()