diff options
| author | 2010-09-20 17:27:26 +0200 | |
|---|---|---|
| committer | 2010-09-20 17:27:26 +0200 | |
| commit | 9808c90314ded2d8bdaab636eb5ea750b4fa6aa9 (patch) | |
| tree | b2fbbcefc1453f24090f1b18d813472baee10edb /module/pyunrar.py | |
| parent | new tmp folder for unrar (diff) | |
| download | pyload-9808c90314ded2d8bdaab636eb5ea750b4fa6aa9.tar.xz | |
little fixes
Diffstat (limited to 'module/pyunrar.py')
| -rw-r--r-- | module/pyunrar.py | 5 | 
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):          """ | 
