@@ -92,7 +92,7 @@ to the completion callback.
92
92
93
93
## fs.renameSync(oldPath, newPath)
94
94
95
- Synchronous rename(2).
95
+ Synchronous rename(2). Returns ` undefined ` .
96
96
97
97
## fs.ftruncate(fd, len, callback)
98
98
@@ -101,7 +101,7 @@ given to the completion callback.
101
101
102
102
## fs.ftruncateSync(fd, len)
103
103
104
- Synchronous ftruncate(2).
104
+ Synchronous ftruncate(2). Returns ` undefined ` .
105
105
106
106
## fs.truncate(path, len, callback)
107
107
@@ -111,7 +111,7 @@ first argument. In this case, `fs.ftruncate()` is called.
111
111
112
112
## fs.truncateSync(path, len)
113
113
114
- Synchronous truncate(2).
114
+ Synchronous truncate(2). Returns ` undefined ` .
115
115
116
116
## fs.chown(path, uid, gid, callback)
117
117
@@ -120,7 +120,7 @@ to the completion callback.
120
120
121
121
## fs.chownSync(path, uid, gid)
122
122
123
- Synchronous chown(2).
123
+ Synchronous chown(2). Returns ` undefined ` .
124
124
125
125
## fs.fchown(fd, uid, gid, callback)
126
126
@@ -129,7 +129,7 @@ to the completion callback.
129
129
130
130
## fs.fchownSync(fd, uid, gid)
131
131
132
- Synchronous fchown(2).
132
+ Synchronous fchown(2). Returns ` undefined ` .
133
133
134
134
## fs.lchown(path, uid, gid, callback)
135
135
@@ -138,7 +138,7 @@ to the completion callback.
138
138
139
139
## fs.lchownSync(path, uid, gid)
140
140
141
- Synchronous lchown(2).
141
+ Synchronous lchown(2). Returns ` undefined ` .
142
142
143
143
## fs.chmod(path, mode, callback)
144
144
@@ -147,7 +147,7 @@ to the completion callback.
147
147
148
148
## fs.chmodSync(path, mode)
149
149
150
- Synchronous chmod(2).
150
+ Synchronous chmod(2). Returns ` undefined ` .
151
151
152
152
## fs.fchmod(fd, mode, callback)
153
153
@@ -156,7 +156,7 @@ are given to the completion callback.
156
156
157
157
## fs.fchmodSync(fd, mode)
158
158
159
- Synchronous fchmod(2).
159
+ Synchronous fchmod(2). Returns ` undefined ` .
160
160
161
161
## fs.lchmod(path, mode, callback)
162
162
@@ -167,7 +167,7 @@ Only available on Mac OS X.
167
167
168
168
## fs.lchmodSync(path, mode)
169
169
170
- Synchronous lchmod(2).
170
+ Synchronous lchmod(2). Returns ` undefined ` .
171
171
172
172
## fs.stat(path, callback)
173
173
@@ -207,7 +207,7 @@ the completion callback.
207
207
208
208
## fs.linkSync(srcpath, dstpath)
209
209
210
- Synchronous link(2).
210
+ Synchronous link(2). Returns ` undefined ` .
211
211
212
212
## fs.symlink(destination, path[ , type] , callback)
213
213
@@ -220,7 +220,7 @@ Note that Windows junction points require the destination path to be absolute.
220
220
221
221
## fs.symlinkSync(destination, path[ , type] )
222
222
223
- Synchronous symlink(2).
223
+ Synchronous symlink(2). Returns ` undefined ` .
224
224
225
225
## fs.readlink(path, callback)
226
226
@@ -257,7 +257,7 @@ to the completion callback.
257
257
258
258
## fs.unlinkSync(path)
259
259
260
- Synchronous unlink(2).
260
+ Synchronous unlink(2). Returns ` undefined ` .
261
261
262
262
## fs.rmdir(path, callback)
263
263
@@ -266,7 +266,7 @@ to the completion callback.
266
266
267
267
## fs.rmdirSync(path)
268
268
269
- Synchronous rmdir(2).
269
+ Synchronous rmdir(2). Returns ` undefined ` .
270
270
271
271
## fs.mkdir(path[ , mode] , callback)
272
272
@@ -275,7 +275,7 @@ to the completion callback. `mode` defaults to `0o777`.
275
275
276
276
## fs.mkdirSync(path[ , mode] )
277
277
278
- Synchronous mkdir(2).
278
+ Synchronous mkdir(2). Returns ` undefined ` .
279
279
280
280
## fs.readdir(path, callback)
281
281
@@ -295,7 +295,7 @@ to the completion callback.
295
295
296
296
## fs.closeSync(fd)
297
297
298
- Synchronous close(2).
298
+ Synchronous close(2). Returns ` undefined ` .
299
299
300
300
## fs.open(path, flags[ , mode] , callback)
301
301
@@ -356,27 +356,35 @@ the end of the file.
356
356
357
357
## fs.openSync(path, flags[ , mode] )
358
358
359
- Synchronous version of ` fs.open() ` .
359
+ Synchronous version of ` fs.open() ` . Returns an integer representing the file
360
+ descriptor.
360
361
361
362
## fs.utimes(path, atime, mtime, callback)
362
- ## fs.utimesSync(path, atime, mtime)
363
363
364
364
Change file timestamps of the file referenced by the supplied path.
365
365
366
+ ## fs.utimesSync(path, atime, mtime)
367
+
368
+ Synchronous version of ` fs.utimes() ` . Returns ` undefined ` .
369
+
370
+
366
371
## fs.futimes(fd, atime, mtime, callback)
367
- ## fs.futimesSync(fd, atime, mtime)
368
372
369
373
Change the file timestamps of a file referenced by the supplied file
370
374
descriptor.
371
375
376
+ ## fs.futimesSync(fd, atime, mtime)
377
+
378
+ Synchronous version of ` fs.futimes() ` . Returns ` undefined ` .
379
+
372
380
## fs.fsync(fd, callback)
373
381
374
382
Asynchronous fsync(2). No arguments other than a possible exception are given
375
383
to the completion callback.
376
384
377
385
## fs.fsyncSync(fd)
378
386
379
- Synchronous fsync(2).
387
+ Synchronous fsync(2). Returns ` undefined ` .
380
388
381
389
## fs.write(fd, buffer, offset, length[ , position] , callback)
382
390
@@ -514,7 +522,7 @@ If `options` is a string, then it specifies the encoding. Example:
514
522
515
523
## fs.writeFileSync(filename, data[ , options] )
516
524
517
- The synchronous version of ` fs.writeFile ` .
525
+ The synchronous version of ` fs.writeFile ` . Returns ` undefined ` .
518
526
519
527
## fs.appendFile(filename, data[ , options] , callback)
520
528
@@ -542,7 +550,7 @@ If `options` is a string, then it specifies the encoding. Example:
542
550
543
551
## fs.appendFileSync(filename, data[ , options] )
544
552
545
- The synchronous version of ` fs.appendFile ` .
553
+ The synchronous version of ` fs.appendFile ` . Returns ` undefined ` .
546
554
547
555
## fs.watchFile(filename[ , options] , listener)
548
556
@@ -680,6 +688,7 @@ and handle the error when it's not there.
680
688
## fs.existsSync(path)
681
689
682
690
Synchronous version of [ ` fs.exists ` ] ( fs.html#fs_fs_exists_path_callback ) .
691
+ Returns ` true ` if the file exists, ` false ` otherwise.
683
692
684
693
` fs.existsSync() ` is ** deprecated** . For supported alternatives please check
685
694
out [ ` fs.statSync ` ] ( fs.html#fs_fs_statsync_path ) or
0 commit comments