mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 17:24:17 +00:00
linting
This commit is contained in:
@@ -288,7 +288,7 @@ class Updater:
|
|||||||
continue
|
continue
|
||||||
self.log.dbg(f'cp -r {exist} {new}')
|
self.log.dbg(f'cp -r {exist} {new}')
|
||||||
try:
|
try:
|
||||||
ign_func = self._ignore(ignores, debug=self.debug)
|
ign_func = self._ignore(ignores)
|
||||||
copytree_with_ign(exist, new,
|
copytree_with_ign(exist, new,
|
||||||
ignore_func=ign_func,
|
ignore_func=ign_func,
|
||||||
debug=self.debug)
|
debug=self.debug)
|
||||||
@@ -298,9 +298,10 @@ class Updater:
|
|||||||
continue
|
continue
|
||||||
self.log.sub(f'\"{new}\" dir added')
|
self.log.sub(f'\"{new}\" dir added')
|
||||||
|
|
||||||
def _ignore(self, ignores, debug=False):
|
def _ignore(self, ignores):
|
||||||
def ignore_func(path):
|
def ignore_func(path):
|
||||||
return must_ignore([path], ignores, debug=debug)
|
return must_ignore([path], ignores,
|
||||||
|
debug=self.debug)
|
||||||
return ignore_func
|
return ignore_func
|
||||||
|
|
||||||
def _merge_dirs_remove_right_only(self, diff, left, right,
|
def _merge_dirs_remove_right_only(self, diff, left, right,
|
||||||
|
|||||||
Reference in New Issue
Block a user