Merge branch 'feature/error_ziparchive_children' into 'master'
Updates method for getting zip file members - Closes #572 Closes #572 See merge request mayan-edms/mayan-edms!41
This commit is contained in:
@@ -140,7 +140,7 @@ def task_source_handle_upload(self, document_type_id, shared_uploaded_file_id, s
|
||||
if expand:
|
||||
try:
|
||||
compressed_file = Archive.open(file_object=file_object)
|
||||
for compressed_file_child in compressed_file.children():
|
||||
for compressed_file_child in compressed_file.get_members():
|
||||
# TODO: find way to uniquely identify child files
|
||||
# Use filename in the mean time.
|
||||
if force_text(compressed_file_child) not in skip_list:
|
||||
|
||||
Reference in New Issue
Block a user