mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 13:56:44 +00:00
fix debug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user