Skip to content

Commit

Permalink
Merge pull request #89 from Nacosia/fork-dev
Browse files Browse the repository at this point in the history
fix: Incorrect argument order when using `pathlib.Path.hardlink_to`.
  • Loading branch information
Ljzd-PRO authored Mar 31, 2024
2 parents 3f25719 + aca488a commit 850a243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ktoolbox/downloader/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 850a243

Please sign in to comment.