Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node tar-stream files cannot be opened by Archive_Tar #14

Open
whikloj opened this issue Feb 26, 2020 · 1 comment
Open

Node tar-stream files cannot be opened by Archive_Tar #14

whikloj opened this issue Feb 26, 2020 · 1 comment

Comments

@whikloj
Copy link
Owner

whikloj commented Feb 26, 2020

When testing out DART I discovered that the *.tar files generated cannot be opened by Archive_Tar.

You get the directories (in this case data), and the file in data but none of the top-level files.

So a bag that when un-tarred with tar -xf looks like

> ls -l ~/.dart/bags/An\ Example\ Bag
total 40
-rw-r--r--  1 whikloj  staff   77 26 Feb 14:58 aptrust-info.txt
-rw-r--r--  1 whikloj  staff  350 26 Feb 14:58 bag-info.txt
-rw-r--r--  1 whikloj  staff   54 26 Feb 14:58 bagit.txt
drwxr-xr-x  3 whikloj  staff   96 26 Feb 14:58 data
-rw-r--r--  1 whikloj  staff   46 26 Feb 14:58 manifest-md5.txt
-rw-r--r--  1 whikloj  staff  317 26 Feb 14:58 tagmanifest-sha256.txt

> ls -l ~/.dart/bags/An\ Example\ Bag/data 
total 592504
-rw-r--r--  1 whikloj  staff  303360153  7 Feb 15:09 PDF.pdf

ends up like

> ls -l Tx0GFf
total 622720
drwxr-xr-x  3 whikloj  staff         96 26 Feb 15:14 An Example Bag
-rw-r--r--  1 whikloj  staff  303360153  7 Feb 15:09 PaxHeader

> ls -l Tx0GFf/An\ Example\ Bag 
total 0
drwxr-xr-x  2 whikloj  staff  64 26 Feb 15:14 data

> ls -l Tx0GFf/An\ Example\ Bag/data 
@whikloj
Copy link
Owner Author

whikloj commented Feb 27, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant