-
Notifications
You must be signed in to change notification settings - Fork 1.9k
FIX: Dereference symlinks before hardlinking #5684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
FIX: Dereference symlinks before hardlinking #5684
Conversation
|
@alch-emi conflicts need to be resolved here, I think |
…nks-while-hardlinking
|
Done! |
…nks-while-hardlinking
|
Merge conflicts re-resolved! Please let me know if there are other changes or considerations that you believe should be addressed before this can be merged. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5684 +/- ##
=======================================
Coverage 67.34% 67.34%
=======================================
Files 136 136
Lines 18492 18494 +2
Branches 3134 3134
=======================================
+ Hits 12453 12455 +2
Misses 5370 5370
Partials 669 669
🚀 New features to boost your workflow:
|
semohr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for resolving the conflict and leaving a comment! If a PR ever sits for too long, please don’t hesitate to ping us, sometimes things slip through or no one feels directly responsible.
The fix looks good to me. That said, we’re trying to move everything over to Pathlib and phase out syspath in the long run. Would you be up for a quick refactor in that direction?
See discussion here: beetbox#5684 (comment)
See discussion here: beetbox#5684 (comment)
b71e718 to
b405d2f
Compare
When creating a hardlink, either during import or
beet convert, if the origin of the hardlink was a symlink, that symlink used to be directly copied. This could create broken symlinks if the origin symlink was relative, and in either case, probably wasn't the user's desired behavior.This change de-references all symlinks before creating a hardlink, such that the end result is a normal file with the same inode as the original file. See #5676 for more discussion about the original issue.
Fixes #5676
Documentation(N/A)