Skip to content

Commit 9ba035c

Browse files
authored
chore: add note that readdir output is not sorted
1 parent d3f78e8 commit 9ba035c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Remove directory
8383

8484
Read directory
8585

86-
The callback return value is an Array of strings.
86+
The callback return value is an Array of strings. NOTE: _To save time, it is NOT SORTED._ (Fun fact: Node.js' `readdir` output is not guaranteed to be sorted either. I learned that the hard way.)
8787

8888
### `fs.writeFile(filepath, data, opts?, cb)`
8989

0 commit comments

Comments
 (0)