You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
What version of the package or command are you using?
v4.0.0-alpha.8
What are you trying to do?
I am attempting to read the table of contents information out of various compressed archives (similar to using tar -tvf file.tar). This is currently not working, if the tar was created using the current directory as it's first entry. For example:
❯ tar cvf test.tar .
a .
a ./test.tartar: ./test.tar: Can't add archive to itselfa ./1mba ./2mb
Even though it was tarred up to the current directory, and barfed out the warning Can't add archive to itself, I can still extract and get content listing using standard tar:
❯ tar tvf test-tar/test.tar
drwxr-xr-x 0 drews staff 0 Aug 29 13:38 ./
-rw-r--r-- 0 drews staff 1048576 Aug 29 13:37 ./1mb
-rw-r--r-- 0 drews staff 2097152 Aug 29 13:37 ./2mb
❯ tar xvf test-tar/test.tar
x ./
x ./1mb
x ./2mb
However when I use the archiver.FileSystem type, it appears to get recursively hung on that first "./" entry, and it never reaches the next entry.
I am unsure where exactly this is in the code, or how it should be fixed...it may be possible to fix this in my code that is using the library as well, however I was unsuccessful at that...any thoughts are appreciated!
Bonus: What do you use archiver for, and do you find it useful?
It's great!
The text was updated successfully, but these errors were encountered:
What version of the package or command are you using?
v4.0.0-alpha.8
What are you trying to do?
I am attempting to read the table of contents information out of various compressed archives (similar to using
tar -tvf file.tar
). This is currently not working, if the tar was created using the current directory as it's first entry. For example:Even though it was tarred up to the current directory, and barfed out the warning
Can't add archive to itself
, I can still extract and get content listing using standard tar:However when I use the archiver.FileSystem type, it appears to get recursively hung on that first "./" entry, and it never reaches the next entry.
What steps did you take?
Below is the sample code I am testing:
What did you expect to happen, and what actually happened instead?
I expected an output like this:
Instead, if the tar has the
.
as it's first path, it is repeated indefinitely:How do you think this should be fixed?
I am unsure where exactly this is in the code, or how it should be fixed...it may be possible to fix this in my code that is using the library as well, however I was unsuccessful at that...any thoughts are appreciated!
Bonus: What do you use archiver for, and do you find it useful?
It's great!
The text was updated successfully, but these errors were encountered: