Skip to content

Commit

Permalink
Merge pull request #40 from Undrog/patch-1
Browse files Browse the repository at this point in the history
fixed create_link and _reflink_linux
JohnDoee authored Feb 16, 2024
2 parents a228176 + e3e4fcf commit 0d96b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autotorrent/utils.py
Original file line number Diff line number Diff line change
@@ -747,7 +747,7 @@ def create_link(actual_path, link_path, link_type):
elif link_type == "hard":
os.link(actual_path, link_path)
elif link_type == "reflink":
reflink(str(link_path), str(actual_path))
reflink(str(actual_path), str(link_path))


def reflink(path, destination):
@@ -774,7 +774,7 @@ def reflink(path, destination):
raise Exception("reflink is not supported")


def _reflink_linux(self, path, destination):
def _reflink_linux(path, destination):
"""
Linux only reflink via syscall FICLONE on supported filesystems
"""

0 comments on commit 0d96b2b

Please sign in to comment.