File deletion based on type

This commit is contained in:
shortcutme 2018-10-15 13:14:43 +02:00
parent 16b40a731a
commit 46535cc7a8
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 0 additions and 1 deletions

View File

@ -139,7 +139,6 @@ class ContentManager(object):
for file_relative_path in deleted:
file_inner_path = content_inner_dir + file_relative_path
try:
self.site.storage.delete(file_inner_path)
# Check if the deleted file is optional
if old_content.get("files_optional") and old_content["files_optional"].get(file_relative_path):