[ 
https://issues.apache.org/jira/browse/COMPRESS-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13675737#comment-13675737
 ] 

Stefan Bodewig commented on COMPRESS-230:
-----------------------------------------

This is because your archive actually contains those files :-)

{code}
$ tar --version
tar (GNU tar) 1.26
$ tar tvf DetExpExample_mob23.tar | head
-rw-r--r-- kjkeefe/staff   225 2010-03-30 06:09 
detExpExample_mob23/._detExpExample_mob23.prj
-rw-r--r-- kjkeefe/staff  3654 2010-03-30 06:09 
detExpExample_mob23/detExpExample_mob23.prj
-rw-r--r-- kjkeefe/staff   225 2010-03-30 06:08 
detExpExample_mob23/._Makefile.project
-rw-r--r-- kjkeefe/staff   986 2010-03-30 06:08 
detExpExample_mob23/Makefile.project
-rw-r--r-- kjkeefe/staff   225 2010-03-30 06:07 
detExpExample_mob23/Atomic/det/._det.san
-rw-r--r-- kjkeefe/staff 26610 2010-03-30 06:07 
detExpExample_mob23/Atomic/det/det.san
-rw-r--r-- kjkeefe/staff   225 2010-03-30 06:07 
detExpExample_mob23/Atomic/det/._detSAN.cpp
-rw-r--r-- kjkeefe/staff 11719 2010-03-30 06:07 
detExpExample_mob23/Atomic/det/detSAN.cpp
-rw-r--r-- kjkeefe/staff   225 2010-03-30 06:07 
detExpExample_mob23/Atomic/det/._detSAN.h
-rw-r--r-- kjkeefe/staff  4641 2010-03-30 06:07 
detExpExample_mob23/Atomic/det/detSAN.h
{code}

what you see are most likely Mac resource forks 
https://en.wikipedia.org/wiki/Resource_fork that your native tar implementation 
on MacOS X hides from you.
                
> Tar archive is not being read correctly
> ---------------------------------------
>
>                 Key: COMPRESS-230
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-230
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.5
>         Environment: Ubuntu 12.04
> java version "1.7.0_21"
> OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.10.1)
> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
>            Reporter: Ken Keefe
>         Attachments: DetExpExample_mob23.tar
>
>
> The TAR archiver is not reading existing tar files correctly. It doesn't 
> happen with every tar, just some of my tar files. I'll attach an example tar 
> file. The first file it reads is not the root directory, but another file in 
> the tar with "._" appended to the front of the file name for some reason.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to