summaryrefslogtreecommitdiffstats
path: root/module/pyunrar.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-20 17:27:26 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-20 17:27:26 +0200
commit9808c90314ded2d8bdaab636eb5ea750b4fa6aa9 (patch)
treeb2fbbcefc1453f24090f1b18d813472baee10edb /module/pyunrar.py
parentnew tmp folder for unrar (diff)
downloadpyload-9808c90314ded2d8bdaab636eb5ea750b4fa6aa9.tar.xz
little fixes
Diffstat (limited to 'module/pyunrar.py')
-rw-r--r--module/pyunrar.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/pyunrar.py b/module/pyunrar.py
index 4db7e1775..6c718514d 100644
--- a/module/pyunrar.py
+++ b/module/pyunrar.py
@@ -24,7 +24,7 @@ from time import sleep
from tempfile import mkdtemp
from shutil import rmtree, move
from shutil import Error as FileError
-from os.path import join, abspath, basename, dirname
+from os.path import join, abspath, basename, dirname, exists
from os import remove, makedirs
EXITMAP = {
@@ -92,7 +92,8 @@ class Unrar():
self.tmpdir = mkdtemp()
else:
self.tmpdir = tmpdir
- makedirs(tmpdir)
+ if not exists(tmpdir):
+ makedirs(tmpdir)
def listContent(self, password=None):
"""