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:
parent
6a37331074
commit
3d6b74d6f7
22 changed files with 287 additions and 91 deletions
BIN
testdata/collection.tar
vendored
Normal file
BIN
testdata/collection.tar
vendored
Normal file
Binary file not shown.
0
testdata/collection/dir1/file1
vendored
Normal file
0
testdata/collection/dir1/file1
vendored
Normal file
0
testdata/collection/dir2/file2
vendored
Normal file
0
testdata/collection/dir2/file2
vendored
Normal file
0
testdata/collection/dir3/file3
vendored
Normal file
0
testdata/collection/dir3/file3
vendored
Normal file
0
testdata/collection/dir4/file4
vendored
Normal file
0
testdata/collection/dir4/file4
vendored
Normal file
0
testdata/collection/dir5/dir6/dir7/lonelyfile
vendored
Normal file
0
testdata/collection/dir5/dir6/dir7/lonelyfile
vendored
Normal file
1
testdata/collection/file1
vendored
Normal file
1
testdata/collection/file1
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
im
|
1
testdata/collection/file2
vendored
Normal file
1
testdata/collection/file2
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
hello
|
1
testdata/collection/file3
vendored
Normal file
1
testdata/collection/file3
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
programming
|
BIN
testdata/singlefile.tar
vendored
Normal file
BIN
testdata/singlefile.tar
vendored
Normal file
Binary file not shown.
0
testdata/singlefile/dir2/dir3/file
vendored
Normal file
0
testdata/singlefile/dir2/dir3/file
vendored
Normal file
BIN
testdata/traversal.tar
vendored
Normal file
BIN
testdata/traversal.tar
vendored
Normal file
Binary file not shown.
0
testdata/traversal/dir2/dir3/actualdir1/file1
vendored
Normal file
0
testdata/traversal/dir2/dir3/actualdir1/file1
vendored
Normal file
0
testdata/traversal/dir2/dir3/actualdir1/file2
vendored
Normal file
0
testdata/traversal/dir2/dir3/actualdir1/file2
vendored
Normal file
1
testdata/traversal/dir2/dir3/actualdir2/a
vendored
Normal file
1
testdata/traversal/dir2/dir3/actualdir2/a
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
hello
|
1
testdata/traversal/dir2/dir3/actualdir2/b
vendored
Normal file
1
testdata/traversal/dir2/dir3/actualdir2/b
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
I'm
|
1
testdata/traversal/dir2/dir3/actualdir2/c
vendored
Normal file
1
testdata/traversal/dir2/dir3/actualdir2/c
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
programming
|
0
testdata/traversal/dir2/dir3/file
vendored
Normal file
0
testdata/traversal/dir2/dir3/file
vendored
Normal file
0
testdata/traversal/dir2/dir3/file3
vendored
Normal file
0
testdata/traversal/dir2/dir3/file3
vendored
Normal file
Loading…
Add table
Add a link
Reference in a new issue