Closed aonez closed 6 years ago
What do you mean by "filling" it? It's a dynamic property, querying the archive's volume info when you call it.
I mean remove the dynamic functionality, since in the init we already do the check.
That's an interesting idea, thanks. I'll consider it
@aonez I was looking into this, and I don't see the spot in init
where we were talking about doing this check. Could you send the line number in URKArchive.mm from the current revision of the v2.9 branch?
@abbeycode this is done here:
Is that what you asked for? Glad to see beta 10!
@aonez That was the block I thought you were talking about, but I don't think it quite tells you if you have a multi-volume archive in all cases. If the archive object is created with the path to the first part of the archive, then this code wouldn't know the difference from a single-volume archive, would it?
You're right @abbeycode, the first part of an old convention naming RAR volume will not match that code, anything else will. Maybe it's safer to leave hasMultipleVolumes
as is now.
Thanks for the suggestion anyway!
https://github.com/abbeycode/UnrarKit/blob/2861c62e6c44569fb0f129e3b0b27fc9b4a70584/Classes/URKArchive.h#L157
Since the multivolume check is now done on init, I think this property should be filled there. Also would be useful to have another property like "firstVolumeNotFound", also filled on init.
I can code it if you think like.