From 06ff4a516ef449fa20831bb2f1410f4bab558616 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Sun, 19 Mar 2023 20:34:57 +0100 Subject: [PATCH] refactor --- setup.cfg | 2 +- .../active_receive/exec_receive_chunks_active.py | 2 +- .../chunked_transfer/active_receive/exec_send_chunks_passive.py | 2 +- .../chunked_transfer/active_send/exec_receive_chunks_passive.py | 2 +- .../chunked_transfer/active_send/exec_send_chunks_active.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.cfg b/setup.cfg index d5a1f8b..39adc8e 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,7 +11,7 @@ long_description = file: README.md long_description_content_type = text/markdown url = https://codeberg.org/privacy1st/subprocess_util project_urls = - Bug Tracker = https://codeberg.org/privacy1st/subprocess_util/issues + Bug Tracker = https://codeberg.org/privacy1st/subprocess-util/issues ; https://pypi.org/classifiers/ classifiers = diff --git a/src/subprocess_util/chunked_transfer/active_receive/exec_receive_chunks_active.py b/src/subprocess_util/chunked_transfer/active_receive/exec_receive_chunks_active.py index b82b1c5..bd1a4c7 100644 --- a/src/subprocess_util/chunked_transfer/active_receive/exec_receive_chunks_active.py +++ b/src/subprocess_util/chunked_transfer/active_receive/exec_receive_chunks_active.py @@ -87,6 +87,6 @@ def exec_receive_chunks_active( # If no errors occurred, delete the chunk directory. # But only if we created it ourselves! if returncode == 0 and created_chunk_dir: - target_chunk_dir.unlink(missing_ok=False) + target_chunk_dir.rmdir() return returncode diff --git a/src/subprocess_util/chunked_transfer/active_receive/exec_send_chunks_passive.py b/src/subprocess_util/chunked_transfer/active_receive/exec_send_chunks_passive.py index 610ee10..af49c3e 100644 --- a/src/subprocess_util/chunked_transfer/active_receive/exec_send_chunks_passive.py +++ b/src/subprocess_util/chunked_transfer/active_receive/exec_send_chunks_passive.py @@ -62,6 +62,6 @@ def exec_send_chunks_passive( # If no errors occurred, delete the chunk directory. # But only if we created it ourselves! if returncode == 0 and created_chunk_dir: - source_chunk_dir.unlink(missing_ok=False) + source_chunk_dir.rmdir() return returncode diff --git a/src/subprocess_util/chunked_transfer/active_send/exec_receive_chunks_passive.py b/src/subprocess_util/chunked_transfer/active_send/exec_receive_chunks_passive.py index 8ab39d7..ab101c3 100644 --- a/src/subprocess_util/chunked_transfer/active_send/exec_receive_chunks_passive.py +++ b/src/subprocess_util/chunked_transfer/active_send/exec_receive_chunks_passive.py @@ -55,6 +55,6 @@ def exec_receive_chunks_passive( # If no errors occurred, delete the chunk directory. # But only if we created it ourselves! if returncode == 0 and created_chunk_dir: - target_chunk_dir.unlink(missing_ok=False) + target_chunk_dir.rmdir() return returncode diff --git a/src/subprocess_util/chunked_transfer/active_send/exec_send_chunks_active.py b/src/subprocess_util/chunked_transfer/active_send/exec_send_chunks_active.py index 8f08c50..f9dae98 100644 --- a/src/subprocess_util/chunked_transfer/active_send/exec_send_chunks_active.py +++ b/src/subprocess_util/chunked_transfer/active_send/exec_send_chunks_active.py @@ -58,6 +58,6 @@ def exec_send_chunks_active( # If no errors occurred, delete the chunk directory. # But only if we created it ourselves! if returncode == 0 and created_chunk_dir: - source_chunk_dir.unlink(missing_ok=False) + source_chunk_dir.rmdir() return returncode