Skip to content

Commit

Permalink
made path corrections for bulk encryption output format
Browse files Browse the repository at this point in the history
  • Loading branch information
JLoveUOA committed Jul 24, 2024
1 parent 7684e48 commit b3c7a7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions src/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,17 +289,18 @@ def print_lab(
if bulk_encrypt:
archive_crate(archive_type, crate_destination, crate_destination, True)
logger.info("Bulk Encrypting RO-Crate")
target = crate_destination.with_suffix("."+archive_type) if archive_type else crate_destination
bulk_encrypt_file(
gpg_binary=gpg_binary,
gpg_binary=crate.gpg_binary,
pubkey_fingerprints=pubkey_fingerprints,
data_to_encrypt=crate_destination,
data_to_encrypt=target,
output_path=final_output,
)
else:
archive_crate(archive_type, final_output, crate_destination, True)


def make_output_dir(output: Path, manifest_id: str) -> Path:
def make_output_dir(output: Path, manifest_id: str) -> Path:
"""Create the path for an output RO-Crate if the directory does not exist create it
Args:
Expand Down

0 comments on commit b3c7a7b

Please sign in to comment.