-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Document that create_dir_all
calls mkdir
/CreateDirW
multiple times
#124520
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
Conversation
How do those details help the reader? |
It's not a single syscall that makes this function work, but additional logic on top of it. That's interesting for the user of this function. |
We don't document all the functions that happen to do more than 1 syscall. So, again, why is that interesting to the user? How does it help them to use it? |
It's interesting in that it's non-atomic. In the error case, there might be partial directory structures lying around.
Can you give an example of a function that documents which syscall it corresponds to, but uses it multiple times without documenting it? |
Then the docs should say that, rather then trying to say that through the implementation details.
Eh, most docs aren't even that precise. |
Before I'll try to do that: Are you opposed to also mentioning that it's using multiple calls to |
Using a plural is fine. Explaining the traversal order seems unnecessary to me. |
Also mention that there might be leftover directories in the error case.
f2f4730
to
a0f8ada
Compare
@bors r+ rollup |
…iaskrgr Rollup of 4 pull requests Successful merges: - rust-lang#124520 (Document that `create_dir_all` calls `mkdir`/`CreateDirW` multiple times) - rust-lang#124724 (Prefer lower vtable candidates in select in new solver) - rust-lang#124771 (Don't consider candidates with no failing where clauses when refining obligation causes in new solver) - rust-lang#124808 (Use `super_fold` in `RegionsToStatic` visitor) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#124520 - tbu-:pr_create_dir_all_doc, r=Amanieu Document that `create_dir_all` calls `mkdir`/`CreateDirW` multiple times
No description provided.