File: android-deltas-sync/_etc/examples/basic-appprivate-storage/runs/y-catch-runpy-fails.txt
# After making a bad zip by "echo '?' > test-ads.zip" to simulate a failed copy. # This actually happened after a botched SAF copy in a supporting file explorer. # 1.2's Nov-2022 update now catches such python command failures and shuts down. Android Deltas Sync 1.2 Copying: from /data/data/com.termux/files/home/test-ads.zip to /data/data/com.termux/files/home/test-ads logs /sdcard/Download/deltas-logs Manually copy or move test-ads.zip from the root of the USB drive to /data/data/com.termux/files/home using any Android file-explorer app with suitable storage permissions. Press enter/return here when the copy is finished... START: Unzipping content on phone Press enter/return to continue Traceback (most recent call last): File "/sdcard/Download/Mergeall-source/test/ziptools/zip-extract.py", line 293, in <module> stats = ziptools.extractzipfile( File "/storage/emulated/0/Download/Mergeall-source/test/ziptools/ziptools/ziptools.py", line 1347, in extractzipfile zipfile = ZipFile(zipname, mode='r', allowZip64=True) File "/data/data/com.termux/files/usr/lib/python3.10/zipfile.py", line 1267, in __init__ self._RealGetContents() File "/data/data/com.termux/files/usr/lib/python3.10/zipfile.py", line 1334, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file Python run failed: ('/data/data/com.termux/files/usr/bin/python3', '-u', '/sdcard/Download/Mergeall-source/test/ziptools/zip-extract.py', '/data/data/com.termux/files/home/test-ads.zip', '/data/data/com.termux/files/home', '-permissions') Exiting; please resolve and retry. Bye (press enter)