@@ -77,7 +77,7 @@ to the completion callback.
77
77
78
78
## fs.renameSync(oldPath, newPath)
79
79
80
- Synchronous rename(2).
80
+ Synchronous rename(2). Returns ` undefined ` .
81
81
82
82
## fs.ftruncate(fd, len, callback)
83
83
@@ -86,7 +86,7 @@ given to the completion callback.
86
86
87
87
## fs.ftruncateSync(fd, len)
88
88
89
- Synchronous ftruncate(2).
89
+ Synchronous ftruncate(2). Returns ` undefined ` .
90
90
91
91
## fs.truncate(path, len, callback)
92
92
@@ -95,7 +95,7 @@ given to the completion callback.
95
95
96
96
## fs.truncateSync(path, len)
97
97
98
- Synchronous truncate(2).
98
+ Synchronous truncate(2). Returns ` undefined ` .
99
99
100
100
## fs.chown(path, uid, gid, callback)
101
101
@@ -104,7 +104,7 @@ to the completion callback.
104
104
105
105
## fs.chownSync(path, uid, gid)
106
106
107
- Synchronous chown(2).
107
+ Synchronous chown(2). Returns ` undefined ` .
108
108
109
109
## fs.fchown(fd, uid, gid, callback)
110
110
@@ -113,7 +113,7 @@ to the completion callback.
113
113
114
114
## fs.fchownSync(fd, uid, gid)
115
115
116
- Synchronous fchown(2).
116
+ Synchronous fchown(2). Returns ` undefined ` .
117
117
118
118
## fs.lchown(path, uid, gid, callback)
119
119
@@ -122,7 +122,7 @@ to the completion callback.
122
122
123
123
## fs.lchownSync(path, uid, gid)
124
124
125
- Synchronous lchown(2).
125
+ Synchronous lchown(2). Returns ` undefined ` .
126
126
127
127
## fs.chmod(path, mode, callback)
128
128
@@ -131,7 +131,7 @@ to the completion callback.
131
131
132
132
## fs.chmodSync(path, mode)
133
133
134
- Synchronous chmod(2).
134
+ Synchronous chmod(2). Returns ` undefined ` .
135
135
136
136
## fs.fchmod(fd, mode, callback)
137
137
@@ -140,7 +140,7 @@ are given to the completion callback.
140
140
141
141
## fs.fchmodSync(fd, mode)
142
142
143
- Synchronous fchmod(2).
143
+ Synchronous fchmod(2). Returns ` undefined ` .
144
144
145
145
## fs.lchmod(path, mode, callback)
146
146
@@ -151,7 +151,7 @@ Only available on Mac OS X.
151
151
152
152
## fs.lchmodSync(path, mode)
153
153
154
- Synchronous lchmod(2).
154
+ Synchronous lchmod(2). Returns ` undefined ` .
155
155
156
156
## fs.stat(path, callback)
157
157
@@ -191,7 +191,7 @@ the completion callback.
191
191
192
192
## fs.linkSync(srcpath, dstpath)
193
193
194
- Synchronous link(2).
194
+ Synchronous link(2). Returns ` undefined ` .
195
195
196
196
## fs.symlink(srcpath, dstpath, [ type] , callback)
197
197
@@ -204,7 +204,7 @@ Note that Windows junction points require the destination path to be absolute.
204
204
205
205
## fs.symlinkSync(srcpath, dstpath, [ type] )
206
206
207
- Synchronous symlink(2).
207
+ Synchronous symlink(2). Returns ` undefined ` .
208
208
209
209
## fs.readlink(path, callback)
210
210
@@ -241,7 +241,7 @@ to the completion callback.
241
241
242
242
## fs.unlinkSync(path)
243
243
244
- Synchronous unlink(2).
244
+ Synchronous unlink(2). Returns ` undefined ` .
245
245
246
246
## fs.rmdir(path, callback)
247
247
@@ -250,7 +250,7 @@ to the completion callback.
250
250
251
251
## fs.rmdirSync(path)
252
252
253
- Synchronous rmdir(2).
253
+ Synchronous rmdir(2). Returns ` undefined ` .
254
254
255
255
## fs.mkdir(path, [ mode] , callback)
256
256
@@ -259,7 +259,7 @@ to the completion callback. `mode` defaults to `0777`.
259
259
260
260
## fs.mkdirSync(path, [ mode] )
261
261
262
- Synchronous mkdir(2).
262
+ Synchronous mkdir(2). Returns ` undefined ` .
263
263
264
264
## fs.readdir(path, callback)
265
265
@@ -279,7 +279,7 @@ to the completion callback.
279
279
280
280
## fs.closeSync(fd)
281
281
282
- Synchronous close(2).
282
+ Synchronous close(2). Returns ` undefined ` .
283
283
284
284
## fs.open(path, flags, [ mode] , callback)
285
285
@@ -340,27 +340,35 @@ the end of the file.
340
340
341
341
## fs.openSync(path, flags, [ mode] )
342
342
343
- Synchronous version of ` fs.open() ` .
343
+ Synchronous version of ` fs.open() ` . Returns an integer representing the file
344
+ descriptor.
344
345
345
346
## fs.utimes(path, atime, mtime, callback)
346
- ## fs.utimesSync(path, atime, mtime)
347
347
348
348
Change file timestamps of the file referenced by the supplied path.
349
349
350
+ ## fs.utimesSync(path, atime, mtime)
351
+
352
+ Synchronous version of ` fs.utimes() ` . Returns ` undefined ` .
353
+
354
+
350
355
## fs.futimes(fd, atime, mtime, callback)
351
- ## fs.futimesSync(fd, atime, mtime)
352
356
353
357
Change the file timestamps of a file referenced by the supplied file
354
358
descriptor.
355
359
360
+ ## fs.futimesSync(fd, atime, mtime)
361
+
362
+ Synchronous version of ` fs.futimes() ` . Returns ` undefined ` .
363
+
356
364
## fs.fsync(fd, callback)
357
365
358
366
Asynchronous fsync(2). No arguments other than a possible exception are given
359
367
to the completion callback.
360
368
361
369
## fs.fsyncSync(fd)
362
370
363
- Synchronous fsync(2).
371
+ Synchronous fsync(2). Returns ` undefined ` .
364
372
365
373
## fs.write(fd, buffer, offset, length, position, callback)
366
374
@@ -461,7 +469,7 @@ Example:
461
469
462
470
## fs.writeFileSync(filename, data, [ options] )
463
471
464
- The synchronous version of ` fs.writeFile ` .
472
+ The synchronous version of ` fs.writeFile ` . Returns ` undefined ` .
465
473
466
474
## fs.appendFile(filename, data, [ options] , callback)
467
475
@@ -485,7 +493,7 @@ Example:
485
493
486
494
## fs.appendFileSync(filename, data, [ options] )
487
495
488
- The synchronous version of ` fs.appendFile ` .
496
+ The synchronous version of ` fs.appendFile ` . Returns ` undefined ` .
489
497
490
498
## fs.watchFile(filename, [ options] , listener)
491
499
@@ -605,7 +613,8 @@ and handle the error when it's not there.
605
613
606
614
## fs.existsSync(path)
607
615
608
- Synchronous version of ` fs.exists ` .
616
+ Synchronous version of ` fs.exists() ` . Returns ` true ` if the file exists,
617
+ ` false ` otherwise.
609
618
610
619
## Class: fs.Stats
611
620
0 commit comments