Skip to content

Commit

Permalink
[app][fix] make public compress
Browse files Browse the repository at this point in the history
  • Loading branch information
M3ssman committed Jun 14, 2024
1 parent 733c73f commit 885038a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "digiflow"
version = "3.11.3"
version = "3.11.4"
description = "Father's Little Digitization Workflow Helper"
readme = "README.md"
requires-python = ">=3.8"
Expand Down
5 changes: 2 additions & 3 deletions src/digiflow/digiflow_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import pathlib
import shutil
import subprocess
import sys
import tempfile

from lxml import etree as ET
Expand Down Expand Up @@ -95,7 +94,7 @@ def process(export_mappings, work_dir, archive_name,
_handle_collections_file(work_dir, target_collection)
#_handle_contents_file(work_dir)
_handle_contents_file(work_dir, export_mappings)
(the_tmp_path, the_filesize) = _compress(os.path.dirname(work_dir), archive_name)
(the_tmp_path, the_filesize) = compress(os.path.dirname(work_dir), archive_name)
path_export_processing = _move_to_tmp_file(the_tmp_path, target_data_dir)
return (path_export_processing, the_filesize)

Expand Down Expand Up @@ -202,7 +201,7 @@ def _is_alto(path_file) -> bool:
raise DigiFlowExportError(f"Unknown OCR-Format: {_err.args}") from _err


def _compress(work_dir, archive_name):
def compress(work_dir, archive_name):
"""
Switched implementation since unable to de-compress zip64Format
created with shutil.make_archive by Share_it
Expand Down

0 comments on commit 885038a

Please sign in to comment.