Skip to content

Commit

Permalink
ignore error file in the checksum file
Browse files Browse the repository at this point in the history
  • Loading branch information
aborel committed Nov 7, 2022
1 parent 1f34cad commit f9ba9e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from functools import partial
from unicodedata import normalize

version = "0.6"
version = "0.6.1"

error_file = "ACOUA_md5_errors.txt"

Expand Down Expand Up @@ -98,6 +98,8 @@ def runchecksum(tkroot, width_chars):
and not filename.endswith(os.sep + 'Thumbs.db') \
and not filename.startswith(os.path.join(choosedir, 'ACOUA_md5.md5')) \
and not filename.startswith(os.path.join('.', 'ACOUA_md5.md5')) \
and not filename.startswith(os.path.join(choosedir, error_file)) \
and not filename.startswith(os.path.join('.', error_file)) \
and not os.path.isdir(filename):
#filename = os.path.join([str(ls.parents[0]).replace(choosedir,'.'), ls.name])
if filename.startswith('/'):
Expand Down

0 comments on commit f9ba9e4

Please sign in to comment.