Community Information
-
How can I get the tar command to show me the hidden resource fork files in an archive?
Is it possible? If so, how? If it matters, I am using macOS Sonoma 14.7.2. As a test, I created the following folder: ``` $ tree tmp tmp └── myfile.txt ``` I then created an archive by doing: ``` $ tar -czvf tmp.tar.gz tmp 07:59:02 a tmp a tmp/myfile.txt ``` I ran the following python code: ``` import tarfile tar_file = tarfile.open( "tmp.tar.gz" ) for member in tar_file.getmembers(): print( member ) ``` and it output: ``` <TarInfo '._tmp' at 0x11b938b80> <TarInfo 'tmp' at 0x11b939000> <TarInfo 'tmp/._myfile.txt' at 0x11b938c40> <TarInfo 'tmp/myfile.txt' at 0x11b938ac0> ``` correctly showing me the hidden resource fork file (._myfile.txt) in the archive. However, when I try a couple of things with the tar command, I cannot get it to show me the hidden resource fork file. ``` $ tar -tvf tmp.tar.gz drwxr-xr-x 0 eric.gorr staff 0 Feb 12 07:58 tmp/ -rw-r--r-- 0 eric.gorr staff 0 Feb 12 07:58 tmp/myfile.txt $ env COPYFILE_DISABLE=true tar -tvf tmp.tar.gz drwxr-xr-x 0 eric.gorr staff 0 Feb 12 07:58 tmp/ -rw-r--r-- 0 eric.gorr staff 0 Feb 12 07:58 tmp/myfile.txt ```2
© 2025 Indiareply.com. All rights reserved.