Borrar filtros
Borrar filtros

Reading files in .rar archive without unzipping

24 visualizaciones (últimos 30 días)
Publius
Publius el 28 de Jul. de 2022
Comentada: Publius el 3 de Ag. de 2022
I am trying to get a listing of the files contained in a .rar (unencrypted) archive without unzipping the archive each time I want to run the script. There is a method to get the files listed in a zip archive, but since I'm using this for storage purposes, I am saving as a .rar for better compression.
This post describes a procedure by which one can obtain a list of the files inside a zip archive, but I can't get it to work with a rar archive. Any help would be great. Thanks.

Respuestas (1)

Walter Roberson
Walter Roberson el 28 de Jul. de 2022
For the task of getting the list of files in a rar, without extracting them, https://stackoverflow.com/questions/561107/rar-archives-with-java
(RAR license is restrictive about doing extraction.)
  8 comentarios
Walter Roberson
Walter Roberson el 3 de Ag. de 2022
Hmmm, the documentation at https://github.com/radarsh/raroscope hints that it needs to be compiled into a .jar -- see the "Gradle" part
Publius
Publius el 3 de Ag. de 2022
I found some sources online that said you could just change a .zip extension into a .jar, and Windows seemed okay with that. No joy referencing that jar though. Same error. I am trying to install Gradle, but it is really complicated (wish they just provided an exe!). Do you have any recommendations on making the .jar file?

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by