It was really misleading showing the most-recently-completed directory, then
spending a long time backing up files in a totally different place.
tstart = time.time()
count = subcount = fcount = 0
lastskip_name = None
+lastdir = ''
for (transname,ent) in r.filter(extra, wantrecurse=wantrecurse_during):
(dir, file) = os.path.split(ent.name)
exists = (ent.flags & index.IX_EXISTS)
status = 'M'
else:
status = ' '
- if opt.verbose >= 2 or stat.S_ISDIR(ent.mode):
+ if opt.verbose >= 2:
log('%s %-70s\n' % (status, ent.name))
+ elif not stat.S_ISDIR(ent.mode) and lastdir != dir:
+ if not lastdir.startswith(dir):
+ log('%s %-70s\n' % (status, os.path.join(dir, '')))
+ lastdir = dir
if opt.progress:
progress_report(0)