-
Notifications
You must be signed in to change notification settings - Fork 2
/
zipfile_read.py
33 lines (29 loc) · 1.38 KB
/
zipfile_read.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python
# -*- coding:utf-8 -*-
import datetime
import zipfile
print """
#########################################################
# PYTHON - ZipFileRead ( Z.F.R. )- GH0ST S0FTWARE #
#########################################################
# CONTACT #
#########################################################
# DEVELOPER : İSMAİL TAŞDELEN #
# Mail Address : [email protected] #
# LINKEDIN : https://www.linkedin.com/in/ismailtasdelen #
# Whatsapp : + 90 534 295 94 31 #
#########################################################
"""
def print_bilgi(archive_name):
konum = zipfile.ZipFile(archive_name)
for bilgi in konum.infolist():
print bilgi.filename
print '\tAçıklama :\t', bilgi.comment
print '\tDeğiştirilme Zamanı :\t', datetime.datetime(*bilgi.date_time)
print '\tİşletim Sistemi :\t\t', bilgi.create_system, '(0 = Windows, 3 = Unix)'
print '\tZIP Dosya Versiyonu :\t', bilgi.create_version
print '\tSıkıştırılmış Dosya Boyut :\t', bilgi.compress_size, 'bytes'
print '\tSıkıştırılmamış Dosya Boyutu :\t', bilgi.file_size, 'bytes'
print
if __name__ == '__main__':
print_bilgi('zip_dosya_ismi.zip') # --> zip_dosya_ismi.zip yazılacak.