summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-12-27 12:13:08 +0000
committerLars Wirzenius <liw@liw.fi>2010-12-27 12:13:08 +0000
commitb2941f7b114b3d41909a811637e4b7d1895374a9 (patch)
tree05be4d804f4b9741f835e1ce467191a6e161e9ce
parent7f4ef9ae22d975fe67c6c8c80da331785eedfea8 (diff)
downloadobnam-b2941f7b114b3d41909a811637e4b7d1895374a9.tar.gz
Report name of current file, not just its dir, when backing up.
-rw-r--r--obnamlib/plugins/terminal_status_plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/obnamlib/plugins/terminal_status_plugin.py b/obnamlib/plugins/terminal_status_plugin.py
index 7386ccca..2f089225 100644
--- a/obnamlib/plugins/terminal_status_plugin.py
+++ b/obnamlib/plugins/terminal_status_plugin.py
@@ -55,7 +55,7 @@ class TerminalStatusPlugin(obnamlib.ObnamPlugin):
self.ts.add(ttystatus.Literal(' up ('))
self.ts.add(ttystatus.ByteSpeed('uploaded-bytes'))
self.ts.add(ttystatus.Literal(') '))
- self.ts.add(ttystatus.Pathname('current-dir'))
+ self.ts.add(ttystatus.Pathname('current-file'))
def found_file_cb(self, filename, metadata):
self.ts['current-file'] = filename
@@ -66,6 +66,7 @@ class TerminalStatusPlugin(obnamlib.ObnamPlugin):
if not dirname.endswith(os.sep):
dirname += os.sep
self.ts['current-dir'] = dirname
+ self.ts['current-file'] = filename
def data_uploaded_cb(self, amount):
self.ts['uploaded-bytes'] += amount