Skip to content
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

fs: align symlink parameter names with std #7143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

florian-g2
Copy link

Motivation

Using src and dst as parameter names in the context of symlinks is confusing, especially in their order.

I usually think from left to right: a symlink points to a target.
So I assumed that src would point to dst, but that isn’t the case here.

Solution

Align to the standard library and use original and link as the parameter names.

@maminrayej maminrayej added A-tokio Area: The main tokio crate M-fs Module: tokio/fs labels Feb 7, 2025
@maminrayej
Copy link
Member

LGTM. But for consistency, please also rename the parameters for hard_link as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-fs Module: tokio/fs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants