Fix direction of comparision, use symbolic constant instead of raw value.
parent
44568b1c93
commit
b1588691cd
|
@ -88,7 +88,7 @@ def copy_with_rename(src_dir, dst_dir, accept_pred=None, rename=None):
|
||||||
shutil.copy2(src, dst)
|
shutil.copy2(src, dst)
|
||||||
logging.debug('cp -p %s %s', src, dst)
|
logging.debug('cp -p %s %s', src, dst)
|
||||||
count += 1
|
count += 1
|
||||||
if logging.getLogger().getEffectiveLevel() >= 20:
|
if logging.getLogger().getEffectiveLevel() <= logging.INFO:
|
||||||
src_short = tool_utils.short_path(src_dir)
|
src_short = tool_utils.short_path(src_dir)
|
||||||
dst_short = tool_utils.short_path(dst_dir)
|
dst_short = tool_utils.short_path(dst_dir)
|
||||||
logging.info('Copied %d files (replacing %d) from %s to %s',
|
logging.info('Copied %d files (replacing %d) from %s to %s',
|
||||||
|
|
Loading…
Reference in New Issue