Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

Commit b510fbd

Browse files
committed
added note to the doc
1 parent 05afa44 commit b510fbd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

doc/api/fs.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ Synchronous ftruncate(2).
107107

108108
Asynchronous truncate(2). No arguments other than a possible exception are
109109
given to the completion callback.
110+
Currently, fs.truncate also accepts a file descriptor as first argument but
111+
you should use fs.ftruncate in this case as this fallback may go away.
110112

111113
## fs.truncateSync(path, len)
112114

0 commit comments

Comments
 (0)