reference dirfd implementation by Qelxiros · Pull Request #139514 · rust-lang/rust (original) (raw)
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I started going through this again, but have a request: would you be open to splitting this PR up some? There is a ton of surface area and it touches all platforms, it's a bit difficult to give everything the attention it needs.
Specifically, this could be split to PRs like:
- Bare minimum to get things started,
Dir::newandDir:open,From<OwnedFd>, Into<OwnedFd>,AsFd, andAsRawFd,Debug(note,newshould probably be calledopen_dirsince it's not creating anything new. Also matchescap-std) - Ops for files (
open_with,remove_file, etc) - Ops for directories (
new_with/open_dir_with,remove_dir, etc) - Misc things like
Dir::symlinkandDirEntryAPI
Feel free to request me for review of the initial since I have looked at that