fix moveCache

This commit is contained in:
j 2008-10-13 14:16:51 +02:00
parent c2c6ca2bd0
commit ef0e6f97af

View file

@ -470,10 +470,12 @@ class ArchiveFile(SQLObject):
def moveCache(self): def moveCache(self):
if os.path.exists(self.mini_movie_file_old): if os.path.exists(self.mini_movie_file_old):
for f in os.walk(self.frameFolder_old): for folder, folders, files in os.walk(self.frameFolder_old):
os.rename(join(self.frameFolder_old, f), join(self.frameFolder, f)) for f in files:
for f in os.walk(self.sillFolder_old): os.rename(join(self.frameFolder_old, f), join(self.frameFolder, f))
os.rename(join(self.sillFolder_old, f), join(self.sillFolder, f)) for folder, folders, files in os.walk(self.stillFolder_old):
for f in files:
os.rename(join(self.stillFolder_old, f), join(self.stillFolder, f))
os.rename(self.mini_movie_file_old, self.mini_movie_file) os.rename(self.mini_movie_file_old, self.mini_movie_file)
os.rename(self.timelineFile_old, self.timelineFile) os.rename(self.timelineFile_old, self.timelineFile)
os.rename(self.posterStillFile_old, self.posterStillFile) os.rename(self.posterStillFile_old, self.posterStillFile)