cmds.posix.tar.CmdExtract: Log number of extracted files
Add a little log line at execution end, saying how many files were actually extracted.
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
7309ec687e
commit
db22f11b32
1 changed files with 3 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ from .Cmd import Cmd
|
|||
from ..CmdTar import CmdTar
|
||||
|
||||
from ....lib.FileContext import FileContext
|
||||
from ....lib.log import *
|
||||
|
||||
class CmdExtract(Cmd): # export
|
||||
|
||||
|
|
@ -22,4 +23,5 @@ class CmdExtract(Cmd): # export
|
|||
|
||||
async def _run(self, args: Namespace) -> None:
|
||||
async with self.ctx(dst=args.dst) as ctx:
|
||||
await ctx.extract(ctx.dst.root)
|
||||
paths = await ctx.extract(ctx.dst.root)
|
||||
log(DEBUG, f'Extracted {len(paths)} files')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue