Fix 'directory' type when iterating tar archives without index
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 21 Jun 2016 08:01:35 +0000 (10:01 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 21 Jun 2016 08:03:27 +0000 (10:03 +0200)
'dir' is not used anywhere in the code base.

deltatar/deltatar.py

index 865841e..cc23a58 100644 (file)
@@ -1018,7 +1018,7 @@ class DeltaTar(object):
                 if tarinfo.isfile():
                     ptype = 'file'
                 elif tarinfo.isdir():
-                    ptype = 'dir'
+                    ptype = 'directory'
                 elif tarinfo.islnk() or tarinfo.issym():
                     ptype = 'link'