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

View file

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