File: android-deltas-sync/_etc/examples/windows-pc-example/runs/z-extract-fixednames-zipfile-on-windows.txt
Steps run on Windows to unzip the initial content, whose filenames were already fixed on macOS before being added to the zip. Fixing may be too late for '\' if unfixed names are unzipped on Windows. Setup: C:\Users\lutz>set Z=\Users\lutz\Downloads\ziptools C:\Users\lutz>set NEW=D:\fold3-vs-deltas\android-deltas-sync\_etc\examples C:\Users\lutz>cd Desktop\temp #------------------------------------------------------------------------- # Ensure latest zip, and removal of prior content (else unzip adds to it) #------------------------------------------------------------------------- C:\Users\lutz\Desktop\temp>fc /B _test-ads-windows.zip %NEW%\_test-ads-windows.zip Comparing files _test-ads-windows.zip and D:\FOLD3-VS-DELTAS\ANDROID-DELTAS-SCRIPTS\_ETC\EXAMPLES\_TEST-ADS-WINDOWS.ZIP FC: no differences encountered C:\Users\lutz\Desktop\temp>dir /B test-ads File Not Found #------------------------------------------------------------------------- # Unzip the already-fixed-names files to C: #------------------------------------------------------------------------- C:\Users\lutz\Desktop\temp>py -3 %Z%\zip-extract.py _test-ads-windows.zip . Running ziptools 1.3 Unzipping from _test-ads-windows.zip to . Extracted test-ads/ Extracted test-ads/Fed keen to be 'well positioned' to act on inflation, other risks, minutes show _ Reuters.html Extracted test-ads/z-fold-3/ Extracted test-ads/z-fold-3/Galaxy Z Fold3 5G 512GB (Unlocked) Phones _ Samsung US.html Extracted test-ads/z-fold-3/Samsung Galaxy Z Fold 3 announced with S Pen support and water resistance - The Verge.html Extracted test-ads/z-fold-3/Samsung Galaxy Z Fold 3 News, Leaks, Release, Specs, and Rumors! _ Android Central.html Extracted test-ads/z-fold-3/10 reasons to upgrade from Samsung's Galaxy Z Fold 2 to the Z Fold 3 _ ZDNet.html Extracted test-ads/z-fold-3/My Order History _ Samsung US.html Extracted test-ads/z-fold-3/more/ Extracted test-ads/z-fold-3/more/more/ Extracted test-ads/z-fold-3/more/more/mergeall.py Extracted test-ads/z-fold-3/Galaxy Z Fold 3 FAQ Everything You Need to Know (2021) _ Beebom.html Extracted test-ads/z-fold-3/48 Hours with the Samsung Galaxy Z Fold 3 and Z Flip 3 _ Digital Trends.html Extracted test-ads/z-fold-3/ZFold3_Carousel_MainSingleKVDT-765x465.webp Extracted test-ads/z-fold-3/ZFold3_Carousel_ProductImage_PhantomBlackDT-765x465.webp Extracted test-ads/U.S. consumer prices post largest gain in 13 years; inflation has likely peaked _ Reuters.html Extracted test-ads/a_b.txt Extracted test-ads/folder-__ _ _ _ _ _ _ _ ^/ Extracted test-ads/folder-__ _ _ _ _ _ _ _ ^/folder-__ _ _ _ _ _ _ _ ^/ Extracted test-ads/folder-__ _ _ _ _ _ _ _ ^/folder-__ _ _ _ _ _ _ _ ^/__ _ _ _ _ _ _ _ ^ Extracted test-ads/not_okay_link-nested/ (Link) --Symlink not supported: stub file made Extracted test-ads/not_okay_link-nested/not_okay_link Extracted test-ads/White House sees supply chain-related price pressures abating, can't say exactly when _ Reuters.html (Link) --Symlink not supported: stub file made Extracted test-ads/okaylink (Link) --Symlink not supported: stub file made Extracted test-ads/not_okay_link Extracted test-ads/z-fold-3.txt Extracted test-ads/a_b copy 8.txt Extracted test-ads/__ _ _ _ _ _ _ _ ^ Extract finished: files=21, folders=7, symlinks=0, unknowns=0. #------------------------------------------------------------------------- # Ensure that all names are fixed (though unzip would mangle too) #------------------------------------------------------------------------- C:\Users\lutz\Desktop\temp>py -3 %Z%\fix-nonportable-filenames.py test-ads . FINDING the following without making changes: ['\x00', '/', '\\', '|', '<', '>', '?', '*', ':', '"'] Continue (y or n)? y Visited 21 files and 6 folders Total nonportable names found but unchanged: 0 C:\Users\lutz\Desktop\temp>