Skip to content

Updated unrar source to 5.4.5 and added new function listVolumePaths#36

Closed
aonez wants to merge 2 commits intoabbeycode:masterfrom
aonez:master
Closed

Updated unrar source to 5.4.5 and added new function listVolumePaths#36
aonez wants to merge 2 commits intoabbeycode:masterfrom
aonez:master

Conversation

@aonez
Copy link
Contributor

@aonez aonez commented Dec 7, 2016

Public function listVolumePaths returns all paths from a rar file. Very rudimentary, more UnrarKit knowledge devs can make a faster procedure.

aonez added 2 commits December 7, 2016 23:42
For a rar file with multiple parts, listVolumePaths will return all parts paths.
@abbeycode
Copy link
Owner

Thanks for the contribution. I'll check it out when I get a chance. Can you tell me the difference though between your new listVolumePaths and the existing listFilenames?

@aonez
Copy link
Contributor Author

aonez commented Dec 7, 2016

listVolumePaths lists the paths of the volumes, not the contents of the file.
For example, a rar file example.part1.rar and example.part2.rar will return:

  • <path_to>/example.part1.rar
  • <path_to>/example.part2.rar

@aonez
Copy link
Contributor Author

aonez commented Dec 7, 2016

Only works with used and next volumes. For example if I use example.part2.rar, it will list *.part3.rar, *.part4.rar and so on, but no *.part1.rar.

@aonez
Copy link
Contributor Author

aonez commented Dec 7, 2016

Maybe getting this info will get the first part path:
https://github.com/abbeycode/UnrarKit/blob/master/Libraries/unrar/extract.cpp#L124

@abbeycode
Copy link
Owner

I updated the UnRAR version myself on master. Can you please rebase your PR so we can focus on the new function you want to add?

@aonez aonez closed this Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants