Support rar5 archive format
commit63310e6df93f44f8cc1157b6a33337f293af2532
authorMarko Kreen <markokr@gmail.com>
Wed, 8 Jun 2016 20:19:47 +0000 (8 23:19 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 8 Jun 2016 21:40:59 +0000 (9 00:40 +0300)
tree2ed87311d975012acb3280c65ee2e53b3c2cfd0b
parent28f3276f1b8fb20d047d63d7a327c508fcaa5b90
Support rar5 archive format

- Refactor parsing out from main class, with shared code
- RARv5 RarInfo will fake most existing fields to be
  compatible with current RARv3 fields, eg: .compress_type,
  .flags, .host_os.  This makes internally some things
  simpler, hopefully for users as well.

Incompat:

- PATH_SEP is now '/' by default.  It's default in RARv5
  and in zipfile.

Cleanups:

- Remove NEED_COMMENTS option, comments are always extracted.
- Remove UNICODE_COMMENTS option, they are always decoded.
- Remove USE_DATETIME option, .date_time is always tuple,
  mtime, ctime, atime, arctime are always datetime objects.
- Bunch of random code cleanups
rarfile.py