File: ziptools/ziptools/docetc/version-number-1.3.txt

#==============================================================================
# Version 1.3 shows its version number, so you can tell if an older version 
# within Mergeall is being run.  This was added late in the 1.3 project, and,
# like stats, is displayed only for top-level scripts, not library-mode calls.
#==============================================================================

(py3 is an alias for python3)
Z=(where ziptools is unzipped)
cd (to test folder)


$ py3 $Z/zip-create.py test-ads.zip test-ads -skipcruft
Running ziptools 1.3
Zipping ['test-ads'] to test-ads.zip
Cruft patterns: {'skip': ['.*', '[dD]esktop.ini', 'Thumbs.db', '~*', '$Recycle.bin', '*.py[co]', '__pycache__'], 'keep': ['.htaccess*', '.login', '.bash*', '.profile', '.svn', '.nomedia']}
Adding folder test-ads
Adding  file  test-ads/White House sees supply chain-related price pressures abating, can't say exactly when | Reuters.html
...etc...
Adding  file  test-ads/z-fold-3.txt
Adding  file  test-ads/\\ | < > ? * : " ^
Create finished: files=19, folders=7, symlinks=3, unknowns=0, crufts=1.


$ py3 $Z/zip-extract.py test-ads.zip .
Running ziptools 1.3
Unzipping from test-ads.zip to .
Extracted test-ads/
Extracted test-ads/White House sees supply chain-related price pressures abating, can't say exactly when | Reuters.html
...etc...
Extracted test-ads/z-fold-3.txt
Extracted test-ads/\\ | < > ? * : " ^
Extract finished: files=19, folders=7, symlinks=3, unknowns=0.


$ py3 $Z/zip-list.py test-ads.zip
Running ziptools 1.3
File Name                                             Modified             Size
test-ads/                                      2021-10-04 11:20:54            0
test-ads/White House sees supply chain-related price pressures abating, can't say exactly when | Reuters.html 2021-07-13 09:07:50       142030
...etc...
test-ads/z-fold-3.txt                          2021-10-02 08:38:40            5
test-ads/\\ | < > ? * : " ^                    2021-10-02 16:25:26            8



[Home page] Books Code Blog Python Author Train Find ©M.Lutz