Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

todo note

jonaswinklera9f1766d1c36
diff --git a/src/documents/management/commands/document_importer.py b/src/documents/management/commands/document_importer.py
index 7e5d32085..9347b0d4c 100644
--- a/src/documents/management/commands/document_importer.py
+++ b/src/documents/management/commands/document_importer.py
@@ -151,6 +151,9 @@ class Command(BaseCommand):
shutil.copy2(thumbnail_path, document.thumbnail_path)
if archive_path:
create_source_path_directory(document.archive_path)
+ # TODO: this assumes that the export is valid and
+ # archive_filename is present on all documents with
+ # archived files
shutil.copy2(archive_path, document.archive_path)
document.save()