diff --git a/doc/api.txt b/doc/api.txt index 75a3c3acd0..6acd34feb8 100644 --- a/doc/api.txt +++ b/doc/api.txt @@ -637,7 +637,7 @@ Asynchronous readdir(3). Reads the contents of a directory. The callback gets two arguments +(err, files)+ where +files+ is an array of the names of the files in the directory excluding +"."+ and +".."+. -+fs.readdir(path, callback)+ :: ++fs.readdirSync(path)+ :: Synchronous readdir(3). Returns an array of filenames excluding +"."+ and +".."+.