You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 24, 2021. It is now read-only.
For some reason, my code for deleting Thumbs.db before creating a Patch is deleting the file in more folders than it should. Possible bug is located in the os.walk() line, because I am still trying to figure out how to properly use os.walk().
Fix
Fix delThumbs() to delete Thumbs.db in the modded files ONLY
Remove delThumbs() and replace it with code to exclude certain files from the ZIP archive. Ideal fix, but unknown if it is possible with shutil.make_archive. Is possible with tarfile, but do not want to switch to a TAR.
Remove os.walk() and instead use the glob module. Use the code from ICU ReDirect as the base, or use it altogether.
How to reproduce:
Coming Never, as this was fixed before this section was written
The text was updated successfully, but these errors were encountered:
This error has been fixed in commit 66e67a0
I corrected delThumbs() using code from the Python documentation on os.walk() (fix number 1 in the topic issue) and it now works perfectly.
Bug
For some reason, my code for deleting Thumbs.db before creating a Patch is deleting the file in more folders than it should. Possible bug is located in the os.walk() line, because I am still trying to figure out how to properly use os.walk().
Fix
How to reproduce:
The text was updated successfully, but these errors were encountered: