mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-10 23:09:16 +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}'
|
msg = f'fnmatch \"{subpath}\" against {pattern}'
|
||||||
LOG.dbg(msg, force=True)
|
LOG.dbg(msg, force=True)
|
||||||
ret = fnmatch.fnmatch(subpath, pattern)
|
ret = fnmatch.fnmatch(subpath, pattern)
|
||||||
if debug:
|
|
||||||
LOG.dbg(f'ignore \"{pattern}\" match: {subpath}',
|
|
||||||
force=True)
|
|
||||||
if ret:
|
if ret:
|
||||||
|
if debug:
|
||||||
|
LOG.dbg(f'ignore \"{pattern}\" match: {subpath}',
|
||||||
|
force=True)
|
||||||
return ret
|
return ret
|
||||||
subpath = os.path.dirname(subpath)
|
subpath = os.path.dirname(subpath)
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user