]> arthur.barton.de Git - bup.git/blobdiff - cmd/xstat-cmd.py
Add symbolic mode information to xstat output, i.e. (drwxr-xr-x).
[bup.git] / cmd / xstat-cmd.py
index 83d264f016d37921f79a21d64b774f8b5498a15b..edd01f676e279080b73a2ccf5ab1ca8207c60b15 100755 (executable)
@@ -85,7 +85,8 @@ for path in remainder:
     if 'path' in active_fields:
         print 'path:', m.path
     if 'mode' in active_fields:
-        print 'mode:', oct(m.mode)
+        print 'mode: %s (%s)' % (oct(m.mode),
+                                 xstat.mode_str(m.mode))
     if 'link-target' in active_fields and stat.S_ISLNK(m.mode):
         print 'link-target:', m.symlink_target
     if 'rdev' in active_fields: