doc: qualify directory read ordering for native fs

Clarify that the documented operating system directory ordering applies
to reads handled by the native file system.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/65868
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Trivikram Kamat authored and GitHub committed 2026-09-09 01:34:28 +00:00
1 parent f9072f37ed
commit 36f16e7eba
1 file changed
+3 -2
+3 -2
View File
@@ -7358,8 +7358,9 @@ Asynchronously read the next directory entry via readdir(3) as an
A promise is returned that will be fulfilled with an {fs.Dirent}, or `null`
if there are no more directory entries to read.
Directory entries returned by this function are in no particular order as
provided by the operating system's underlying directory mechanisms.
For directory reads handled by the native file system, directory entries
returned by this function are in no particular order as provided by the
operating system's underlying directory mechanisms.
Entries added or removed while iterating over the directory might not be
included in the iteration results.