Menu

#1683 List the bare contents of an archive

open
nobody
None
5
2026-04-11
2026-04-09
oset jan
No

Request for option to list bare contents of an archive. Bare meaning only, pure file names.
It would be very useful for things like searching file names within an archive, listing files for other tools in pipeline, providing content of archive to other tools or scripts.

Tar and rar can do that. It would be useful to be able to do that with .7z archives too.

$ tar -t -f arc1.tar 
path/
path/to/
path/to/file.3
path/to/file.2
path/to/file.1

$ rar lb arc1.rar 
path/to/file.3
path/to/file.2
path/to/file.1
path/to
path

Discussion

  • AlexS

    AlexS - 2026-04-09
    7z t archive.7z -bb 
    
     
  • oset jan

    oset jan - 2026-04-09

    That's not the same. Test it yourself and tell me that's the answer.

     
    • AlexS

      AlexS - 2026-04-10
       
      • oset jan

        oset jan - 2026-04-11

        Tried it and it didn't work.
        Mind you, I'm not under Windows, and use proton/wine. At least currently.

        It's rather simple, even basic feature. That's why I hoped to get it, but as dev didn't answer, I can only conclude, he's not interested.

         

Log in to post a comment.

MongoDB Logo MongoDB