Don't remove version file
This commit is contained in:
@@ -73,7 +73,7 @@ class FileManager(Plugin):
|
|||||||
db = get_session()
|
db = get_session()
|
||||||
for root, dirs, walk_files in os.walk(Env.get('cache_dir')):
|
for root, dirs, walk_files in os.walk(Env.get('cache_dir')):
|
||||||
for filename in walk_files:
|
for filename in walk_files:
|
||||||
if root == python_cache or 'minified' in filename: continue
|
if root == python_cache or 'minified' in filename or 'version' in filename: continue
|
||||||
file_path = os.path.join(root, filename)
|
file_path = os.path.join(root, filename)
|
||||||
f = db.query(File).filter(File.path == toUnicode(file_path)).first()
|
f = db.query(File).filter(File.path == toUnicode(file_path)).first()
|
||||||
if not f:
|
if not f:
|
||||||
|
|||||||
Reference in New Issue
Block a user