Skip to content

Commit

Permalink
Respect verbosity for _extract_archive, fixes #166
Browse files Browse the repository at this point in the history
  • Loading branch information
ddibiasi committed Sep 30, 2024
1 parent 04c16f2 commit 30470bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion patoolib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,8 @@ def _extract_archive(
msg = f"output path `{outdir}' exists and is not a directory"
raise util.PatoolError(msg)
else:
log.log_info(f"... creating output directory `{outdir}'.")
if verbosity >= 0:
log.log_info(f"... creating output directory `{outdir}'.")
os.makedirs(outdir)
try:
cmdlist = get_archive_cmdlist(
Expand Down

0 comments on commit 30470bc

Please sign in to comment.