Skip to content
This repository has been archived by the owner on Jul 21, 2020. It is now read-only.

Archive.java and FileHeader.java updated #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vsubhash
Copy link

@vsubhash vsubhash commented Jul 3, 2013

Archive.java - New extractFile overload
FileHeader.java - Fix for getFileNameString

vsubhash added 2 commits July 4, 2013 03:27
 * Extracts specified header to specified directory. Path in the
 * header and specified directory will be constructed if it does
 * not already exist.
getFileNameString() method now returns names with file separators used by the file system instead of the Windows "\". File systems on Linux and other OSes use "/" as the file separator.
@i30817
Copy link

i30817 commented Mar 18, 2014

Hmm, i think the documentation on the winrar site is wrong (they're calling 'forward slash '')
I tested winrar 4.20 and 5.1 by making a archive file with dirs on wine for each and then printing the path of both on junrar (with windows jre on wine). They both used '' instead of '/'. Well, this simplifies things.

edit: never mind, the archive i created was not rar 5 but the old version. The new version throws a exception 'badRarArchive'. So the documentation is probably right.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants