tar: populate Entry tree under a common root

Resolves #56. Now, the Entry tree will be populated
under a common root (if necessary), so that a manifest can
be accurately generate from a tar file that has been
created using multiple directories.

Signed-off-by: Stephen Chung <schung@redhat.com>
This commit is contained in:
Stephen Chung 2016-08-02 15:30:45 -04:00
parent 6a37331074
commit 3d6b74d6f7
22 changed files with 287 additions and 91 deletions

BIN
testdata/collection.tar vendored Normal file

Binary file not shown.

0
testdata/collection/dir1/file1 vendored Normal file
View file

0
testdata/collection/dir2/file2 vendored Normal file
View file

0
testdata/collection/dir3/file3 vendored Normal file
View file

0
testdata/collection/dir4/file4 vendored Normal file
View file

View file

1
testdata/collection/file1 vendored Normal file
View file

@ -0,0 +1 @@
im

1
testdata/collection/file2 vendored Normal file
View file

@ -0,0 +1 @@
hello

1
testdata/collection/file3 vendored Normal file
View file

@ -0,0 +1 @@
programming

BIN
testdata/singlefile.tar vendored Normal file

Binary file not shown.

0
testdata/singlefile/dir2/dir3/file vendored Normal file
View file

BIN
testdata/traversal.tar vendored Normal file

Binary file not shown.

View file

View file

View file

@ -0,0 +1 @@
hello

View file

@ -0,0 +1 @@
I'm

View file

@ -0,0 +1 @@
programming

0
testdata/traversal/dir2/dir3/file vendored Normal file
View file

0
testdata/traversal/dir2/dir3/file3 vendored Normal file
View file