Skip to content

Document which open commands will follow symlinks#156034

Open
alexanderkjall wants to merge 1 commit intorust-lang:mainfrom
alexanderkjall:std-fs-document-symlink-behaviour
Open

Document which open commands will follow symlinks#156034
alexanderkjall wants to merge 1 commit intorust-lang:mainfrom
alexanderkjall:std-fs-document-symlink-behaviour

Conversation

@alexanderkjall
Copy link
Copy Markdown
Contributor

As symlinks are a concept that it's easy to forget to think about when writing filesystem centric code.

Inspired by this: tower-rs/tower-http#658

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 1, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 1, 2026

r? @nia-e

rustbot has assigned @nia-e.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 8 candidates
  • Random selection from Mark-Simulacrum, jhpratt, nia-e

@nia-e nia-e added the I-libs-api-nominated Nominated for discussion during a libs-api team meeting. label May 1, 2026
@nia-e
Copy link
Copy Markdown
Member

nia-e commented May 1, 2026

Needs team signoff for committing to this, but seems useful ^^

@Amanieu
Copy link
Copy Markdown
Member

Amanieu commented May 5, 2026

We discussed this in the @rust-lang/libs-api meeting. This isn't an API change, it's just describing the normal behavior of symbolic link. In fact, it would be better if this was documented in the fs module's top-level comment rather than in individual methods.

@Amanieu Amanieu removed the I-libs-api-nominated Nominated for discussion during a libs-api team meeting. label May 5, 2026
@nia-e nia-e added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants