Repository navigation
Implement read-dir - #4380
Implement read-dir#4380lucifer1004 wants to merge 3 commits into
read-dir#4380Conversation
|
If anything, the name should be changed. It contains 2 words without any separator. The standard library has only single word names. So this is unusual. I have 2 propositions: If we would go with the second, then it would have to be an Since directory is not a building block, it means that ultimately making it an element is useless. But I just thought of another approach. Like I don't know if you can add functions/methods to a function ( |
|
On the Rust side, |
|
I renamed the function to |
|
Thanks for the PR! A remaining concern of mine is the one from #2123 (comment): How does one distinguish files from folders into which one might want to recurse? I'm also not certain how There is also the problem of non-UTF-8 paths (which I think fall into an |
I think the simplest solution will be to use
I think it's exactly the same as using I can't say anything concrete about the UTF-8 problem, but I think that one of those |
|
|
I don't like I suggest returning some |
|
I agree that a |
This PR works as a POC solution for #2123, which I think is a missing basic feature, especially when writing a thesis/novel or editing a collection of works.
The design is very primitive and the implementation may introduce some bugs, but all these can be discussed and changed. A major purpose of this PR is to support those who are in favor of the directory walking feature.