diff -r 0951727b8815 -r d2c80f5cab53 configurationengine/source/plugins/symbian/ConeThemePlugin/themeplugin/unzip.py --- a/configurationengine/source/plugins/symbian/ConeThemePlugin/themeplugin/unzip.py Wed Sep 08 12:20:56 2010 +0300 +++ b/configurationengine/source/plugins/symbian/ConeThemePlugin/themeplugin/unzip.py Thu Oct 21 16:36:53 2010 +0300 @@ -22,17 +22,19 @@ if (os.path.exists(dir) is not True): os.mkdir(dir, 0777) - zfobj = zipfile.ZipFile(file) for name in zfobj.namelist(): filePath = dir + name if name.endswith('/'): - os.mkdir(filePath) + if not os.path.exists(filePath): + createEmtyResource(filePath) + #os.mkdir(filePath) else: - createEmtyResource(filePath) - outfile = open(dir+ name, 'wb') - outfile.write(zfobj.read(name)) - outfile.close() + if not os.path.exists(filePath): + createEmtyResource(filePath) + outfile = open(dir+ name, 'wb') + outfile.write(zfobj.read(name)) + outfile.close() def createEmtyResource(path): splitdrive = os.path.splitdrive(path)