Ignore temp updater files on cleanup

This commit is contained in:
Ruud
2013-05-15 14:49:45 +02:00
parent f6e84b6a35
commit c170615fb3

View File

@@ -73,7 +73,7 @@ class FileManager(Plugin):
db = get_session()
for root, dirs, walk_files in os.walk(Env.get('cache_dir')):
for filename in walk_files:
if root == python_cache or 'minified' in filename or 'version' in filename: continue
if root == python_cache or 'minified' in filename or 'version' in filename or 'temp_updater' in root: continue
file_path = os.path.join(root, filename)
f = db.query(File).filter(File.path == toUnicode(file_path)).first()
if not f: