From cc02023730ece03807f6565ce1393096a9b6ce93 Mon Sep 17 00:00:00 2001 From: "beville@gmail.com" <beville@gmail.com@6c5673fe-1810-88d6-992b-cd32ca31540c> Date: Tue, 5 Feb 2013 22:48:12 +0000 Subject: [PATCH] Fixed an issue in rar directory reading when the first char in the path is a space. git-svn-id: http://comictagger.googlecode.com/svn/trunk@429 6c5673fe-1810-88d6-992b-cd32ca31540c --- UnRAR2/unix.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UnRAR2/unix.py b/UnRAR2/unix.py index 9d87b18..fd56ca9 100644 --- a/UnRAR2/unix.py +++ b/UnRAR2/unix.py @@ -120,7 +120,9 @@ class RarFileImplementation(object): if len(accum)==2: data = {} data['index'] = i - data['filename'] = accum[0].strip() + #!!!ATB - changed this because it was choking when a folder or file started with a space. + #!!! now, just strip off the first char in the string + data['filename'] = accum[0].rstrip()[1:] info = re_spaces.split(accum[1].strip()) data['size'] = int(info[0]) attr = info[5]