@@ -313,7 +313,7 @@ def write_dirs(self, *base_dirs, prefix=None, timestamp=None):
313
313
"""
314
314
self ._ensure_open ()
315
315
for base_dir in base_dirs :
316
- self ._log .info ("adding content of directory '%s' " , base_dir )
316
+ self ._log .info ("adding content of directory: %s " , base_dir )
317
317
for path in emit_dir_content (base_dir ):
318
318
arcname = os .path .relpath (path , base_dir )
319
319
self ._write_file (path , prefix , arcname , timestamp )
@@ -338,7 +338,7 @@ def _write_file(self, file_path, prefix=None, name=None, timestamp=None):
338
338
arcname = name if name else os .path .basename (file_path )
339
339
if prefix :
340
340
arcname = os .path .join (prefix , arcname )
341
- self ._log .info ("adding '%s' " , arcname )
341
+ self ._log .info ("adding: %s " , arcname )
342
342
zinfo = self ._make_zinfo_from_file (file_path , arcname )
343
343
if timestamp is None :
344
344
timestamp = self .timestamp
@@ -516,7 +516,7 @@ def __init__(self, args):
516
516
def compile (self , patterns ):
517
517
rules = []
518
518
for p in patterns_list (self ._args , patterns ):
519
- self ._log .debug ("pattern '%s' " , p )
519
+ self ._log .debug ("filter pattern: %s " , p )
520
520
if p .startswith ('!' ):
521
521
r = re .compile (p [1 :])
522
522
rules .append ((operator .not_ , r ))
@@ -555,10 +555,14 @@ def apply(path):
555
555
def emit_dir (dpath , opath ):
556
556
if apply (dpath ):
557
557
yield opath
558
+ else :
559
+ self ._log .info ('skip dir: %s' , opath )
558
560
559
561
def emit_file (fpath , opath ):
560
562
if apply (fpath ):
561
563
yield opath
564
+ else :
565
+ self ._log .info ('skip file: %s' , opath )
562
566
563
567
if os .path .isfile (path ):
564
568
name = os .path .basename (path )
@@ -569,12 +573,12 @@ def emit_file(fpath, opath):
569
573
else :
570
574
for root , dirs , files in os .walk (path ):
571
575
o , d = norm_path (path , root )
572
- log .info ('od: %s %s' , o , d )
576
+ # log.info('od: %s %s', o, d)
573
577
if root != path :
574
578
yield from emit_dir (d , o )
575
579
for name in files :
576
580
o , f = norm_path (path , root , name )
577
- log .info ('of: %s %s' , o , f )
581
+ # log.info('of: %s %s', o, f)
578
582
yield from emit_file (f , o )
579
583
580
584
0 commit comments