File: android-deltas-sync/_etc/examples/linux-pc-example/runs/1-init-copy-pc.txt

"""
=====================================================================================
Linux is unique in that symlinks generate mixed-mode diffs: they are extracted
from zipfiles correctly on Linux itself, but cannot be stored on an exFAT external
drive, which yields simple stub files that fail to match the symlink by type 
thereafter.  This doesn't happen on macOS, because that platform forges links 
on exFAT with stub files, which also match between proxy and phone (but are not 
symlinks outside macOS).  The Windows test never creates symlinks initially: the 
test-data unzip is not run in admin mode, so it yields stub files which are then 
propagated to the proxy drive, and on to the phone.  See also ../_readme.txt.
=====================================================================================
"""


#====================================================================================
# Unzip test folder, unfixed names
#====================================================================================

$ cd ~/Desktop/temp/
$ python3 ~/Downloads/ziptools/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
Extracted test-ads/z-fold-3/
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/48 Hours with the Samsung Galaxy Z Fold 3 and Z Flip 3 | Digital Trends.html
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/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/My Order History | Samsung US.html
Extracted test-ads/z-fold-3/Galaxy Z Fold3 5G 512GB (Unlocked) Phones | Samsung US.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/z-fold-3/10 reasons to upgrade from Samsung's Galaxy Z Fold 2 to the Z Fold 3 | ZDNet.html
Extracted test-ads/a|b.txt
Extracted test-ads/U.S. consumer prices post largest gain in 13 years; inflation has likely peaked | Reuters.html
Extracted test-ads/Fed keen to be 'well positioned' to act on inflation, other risks, minutes show | Reuters.html
Extracted test-ads/folder-\\ | < > ? * : " ^/
Extracted test-ads/folder-\\ | < > ? * : " ^/folder-\\ | < > ? * : " ^/
Extracted test-ads/folder-\\ | < > ? * : " ^/folder-\\ | < > ? * : " ^/\\ | < > ? * : " ^
(Link) Extracted test-ads/not:okay?link
Extracted test-ads/a?b copy 8.txt
(Link) Extracted test-ads/okaylink
Extracted test-ads/not<okay?link-nested/
(Link) Extracted test-ads/not<okay?link-nested/not<okay?link
Extracted test-ads/z-fold-3.txt
Extracted test-ads/\\ | < > ? * : " ^
Extract finished: files=18, folders=7, symlinks=3, unknowns=0.


#====================================================================================
# Run the copy
#====================================================================================

$ A=~/Downloads/android-deltas-sync
$ cd $A
$ python3 initial-copy-part1-pc.py 
Android Deltas Sync 1.1

Copying:
from /home/me/Desktop/temp/test-ads
to   /media/me/SAMSUNG_T5/test-ads
zip  /media/me/SAMSUNG_T5/test-ads.zip
logs /home/me/Downloads/deltas-logs

It is recommended to run fix-nonportable-filenames.py before
propagating content from Unix to Windows, some Android's shared
storage, and proxy drives using the FAT32 or exFAT filesystems.
Run the name-fixer script in report-only mode (y or n)? y
Running name fixer
    Runtime: 0m, 0.015s
Name-fixer summary:
    Visited 21 files and 6 folders
    Total nonportable names found but unchanged: 18
Display name-fixer's full output (y or n)? n
Run the name-fixer script to fix filenames (y or n)? y
Running name fixer
    Runtime: 0m, 0.016s
Name-fixer summary:
    Visited 21 files and 6 folders
    Total nonportable names found and changed: 18

START: Zipping content on PC
Press enter/return to continue
    Runtime: 0m, 0.057s
Zip create summary:
    Create finished: files=18, folders=7, symlinks=3, unknowns=0, crufts=0.

START: Unzipping content on proxy
Press enter/return to continue
Removing prior content on proxy
Proceed with removal (y or n)? y
    Runtime: 0m, 0.006s
Starting unzip
    Runtime: 0m, 0.045s
Zip extract summary:
    Extract finished: files=21, folders=7, symlinks=0, unknowns=0.

START: Moving content zip to proxy
Press enter/return to continue
    Runtime: 0m, 0.008s

Verify PC copy to proxy copy with mergeall (y or n)? y
Running mergeall
    Runtime: 0m, 0.044s
Mergeall summary:
    -------------------------------------------------------------------------------
    *Summary
    Compared    => files: 18, folders: 7, symlinks: 0
    Differences => samefile: 0, uniqueto: 0, uniquefrom: 0, mixedmode: 3
    Changed:
    files   => created: 0, deleted: 0, replaced: 0
    folders => created: 0, deleted: 0, replaced: 0
    -------------------------------------------------------------------------------
    Finished.

Verify PC copy to proxy copy with diffall (y or n)? y
Running diffall
    Runtime: 0m, 0.029s
Diffall summary:
    Files checked: 18, Folders checked: 7, Symlinks checked: 0, Files skipped: 0
    System metadata (cruft) files were skipped
    Diffs found: 3
    - items MISSED at [/home/me/Desktop/temp/test-ads] - [/media/me/SAMSUNG_T5/test-ads]: [not_okay_link]
    - items MISSED at [/home/me/Desktop/temp/test-ads] - [/media/me/SAMSUNG_T5/test-ads]: [okaylink]
    - items MISSED at [/home/me/Desktop/temp/test-ads/not_okay_link-nested] - [/media/me/SAMSUNG_T5/test-ads/not_okay_link-nested]: [not_okay_link]
    End of report.

Finished - total elapsed time (h:m:s) = 0:3:17
See logs in "/home/me/Downloads/deltas-logs", and run part 2 on your phone.
$



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