From aca488af066a388f9a36f4ae02512e1eca1b6a6c Mon Sep 17 00:00:00 2001 From: Nacosia <161319046+Nacosia@users.noreply.github.com> Date: Sun, 31 Mar 2024 21:46:25 +0800 Subject: [PATCH] fix: Incorrect argument order when using `pathlib.Path.link_to`. --- ktoolbox/downloader/downloader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ktoolbox/downloader/downloader.py b/ktoolbox/downloader/downloader.py index f1d2bf5..ee2b964 100644 --- a/ktoolbox/downloader/downloader.py +++ b/ktoolbox/downloader/downloader.py @@ -161,7 +161,7 @@ async def run( ret_msg = "Download file already exists in both bucket and local, skipping" if not art_file_path.is_file(): ret_msg = "Download file already exists in bucket, linking to target path" - check_path.hardlink_to(art_file_path) + os.link(art_bucket_file_path, art_file_path) else: ret_msg = "Download file already exists, skipping" return DownloaderRet(