mirror of https://github.com/nodejs/node.git
Correct fs.open API documentation
The fact that the mode parameter is optional for fs.open and fs.openSync was not documented.v0.7.4-release
parent
29b0dc4ec8
commit
aabdd5d045
|
@ -207,12 +207,12 @@ to the completion callback.
|
|||
|
||||
Synchronous close(2).
|
||||
|
||||
### fs.open(path, flags, mode=0666, [callback])
|
||||
### fs.open(path, flags, [mode], [callback])
|
||||
|
||||
Asynchronous file open. See open(2). Flags can be 'r', 'r+', 'w', 'w+', 'a',
|
||||
or 'a+'. The callback gets two arguments `(err, fd)`.
|
||||
or 'a+'. `mode` defaults to 0666. The callback gets two arguments `(err, fd)`.
|
||||
|
||||
### fs.openSync(path, flags, mode=0666)
|
||||
### fs.openSync(path, flags, [mode])
|
||||
|
||||
Synchronous open(2).
|
||||
|
||||
|
|
Loading…
Reference in New Issue