1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 13:56:44 +00:00

fix debug

This commit is contained in:
deadc0de6
2023-12-28 06:18:31 +01:00
committed by deadc0de
parent af694e6835
commit fa5c8d7fa2

View File

@@ -237,10 +237,10 @@ def _match_ignore_pattern(path, pattern, debug=False):
msg = f'fnmatch \"{subpath}\" against {pattern}'
LOG.dbg(msg, force=True)
ret = fnmatch.fnmatch(subpath, pattern)
if debug:
LOG.dbg(f'ignore \"{pattern}\" match: {subpath}',
force=True)
if ret:
if debug:
LOG.dbg(f'ignore \"{pattern}\" match: {subpath}',
force=True)
return ret
subpath = os.path.dirname(subpath)
return False