@@ -448,6 +448,7 @@ changes:
448
448
* ` path ` {string|Buffer|URL}
449
449
* ` mode ` {integer} ** Default:** ` fs.constants.F_OK `
450
450
* ` callback ` {Function}
451
+ * ` err ` {Error}
451
452
452
453
Tests a user's permissions for the file or directory specified by ` path ` .
453
454
The ` mode ` argument is an optional integer that specifies the accessibility
@@ -600,6 +601,7 @@ changes:
600
601
* ` mode ` {integer} ** Default:** ` 0o666 `
601
602
* ` flag ` {string} ** Default:** ` 'a' `
602
603
* ` callback ` {Function}
604
+ * ` err ` {Error}
603
605
604
606
Asynchronously append data to a file, creating the file if it does not yet exist.
605
607
` data ` can be a string or a buffer.
@@ -662,6 +664,7 @@ changes:
662
664
* ` path ` {string|Buffer|URL}
663
665
* ` mode ` {integer}
664
666
* ` callback ` {Function}
667
+ * ` err ` {Error}
665
668
666
669
Asynchronous chmod(2). No arguments other than a possible exception are given
667
670
to the completion callback.
@@ -699,6 +702,7 @@ changes:
699
702
* ` uid ` {integer}
700
703
* ` gid ` {integer}
701
704
* ` callback ` {Function}
705
+ * ` err ` {Error}
702
706
703
707
Asynchronous chown(2). No arguments other than a possible exception are given
704
708
to the completion callback.
@@ -731,6 +735,7 @@ changes:
731
735
732
736
* ` fd ` {integer}
733
737
* ` callback ` {Function}
738
+ * ` err ` {Error}
734
739
735
740
Asynchronous close(2). No arguments other than a possible exception are given
736
741
to the completion callback.
@@ -980,6 +985,7 @@ deprecated: v1.0.0
980
985
981
986
* ` path ` {string|Buffer|URL}
982
987
* ` callback ` {Function}
988
+ * ` exists ` {Boolean}
983
989
984
990
Test whether or not the given path exists by checking with the file system.
985
991
Then call the ` callback ` argument with either true or false. Example:
@@ -1108,6 +1114,7 @@ changes:
1108
1114
* ` fd ` {integer}
1109
1115
* ` mode ` {integer}
1110
1116
* ` callback ` {Function}
1117
+ * ` err ` {Error}
1111
1118
1112
1119
Asynchronous fchmod(2). No arguments other than a possible exception
1113
1120
are given to the completion callback.
@@ -1136,6 +1143,7 @@ changes:
1136
1143
* ` uid ` {integer}
1137
1144
* ` gid ` {integer}
1138
1145
* ` callback ` {Function}
1146
+ * ` err ` {Error}
1139
1147
1140
1148
Asynchronous fchown(2). No arguments other than a possible exception are given
1141
1149
to the completion callback.
@@ -1163,6 +1171,7 @@ changes:
1163
1171
1164
1172
* ` fd ` {integer}
1165
1173
* ` callback ` {Function}
1174
+ * ` err ` {Error}
1166
1175
1167
1176
Asynchronous fdatasync(2). No arguments other than a possible exception are
1168
1177
given to the completion callback.
@@ -1188,6 +1197,8 @@ changes:
1188
1197
1189
1198
* ` fd ` {integer}
1190
1199
* ` callback ` {Function}
1200
+ * ` err ` {Error}
1201
+ * ` stats ` {fs.Stats}
1191
1202
1192
1203
Asynchronous fstat(2). The callback gets two arguments ` (err, stats) ` where
1193
1204
` stats ` is an [ ` fs.Stats ` ] [ ] object. ` fstat() ` is identical to [ ` stat() ` ] [ ] ,
@@ -1214,6 +1225,7 @@ changes:
1214
1225
1215
1226
* ` fd ` {integer}
1216
1227
* ` callback ` {Function}
1228
+ * ` err ` {Error}
1217
1229
1218
1230
Asynchronous fsync(2). No arguments other than a possible exception are given
1219
1231
to the completion callback.
@@ -1240,6 +1252,7 @@ changes:
1240
1252
* ` fd ` {integer}
1241
1253
* ` len ` {integer} ** Default:** ` 0 `
1242
1254
* ` callback ` {Function}
1255
+ * ` err ` {Error}
1243
1256
1244
1257
Asynchronous ftruncate(2). No arguments other than a possible exception are
1245
1258
given to the completion callback.
@@ -1313,6 +1326,7 @@ changes:
1313
1326
* ` atime ` {integer}
1314
1327
* ` mtime ` {integer}
1315
1328
* ` callback ` {Function}
1329
+ * ` err ` {Error}
1316
1330
1317
1331
Change the file timestamps of a file referenced by the supplied file
1318
1332
descriptor.
@@ -1349,6 +1363,7 @@ changes:
1349
1363
* ` path ` {string|Buffer}
1350
1364
* ` mode ` {integer}
1351
1365
* ` callback ` {Function}
1366
+ * ` err ` {Error}
1352
1367
1353
1368
Asynchronous lchmod(2). No arguments other than a possible exception
1354
1369
are given to the completion callback.
@@ -1379,6 +1394,7 @@ changes:
1379
1394
* ` uid ` {integer}
1380
1395
* ` gid ` {integer}
1381
1396
* ` callback ` {Function}
1397
+ * ` err ` {Error}
1382
1398
1383
1399
Asynchronous lchown(2). No arguments other than a possible exception are given
1384
1400
to the completion callback.
@@ -1412,6 +1428,7 @@ changes:
1412
1428
* ` existingPath ` {string|Buffer|URL}
1413
1429
* ` newPath ` {string|Buffer|URL}
1414
1430
* ` callback ` {Function}
1431
+ * ` err ` {Error}
1415
1432
1416
1433
Asynchronous link(2). No arguments other than a possible exception are given to
1417
1434
the completion callback.
@@ -1448,6 +1465,8 @@ changes:
1448
1465
1449
1466
* ` path ` {string|Buffer|URL}
1450
1467
* ` callback ` {Function}
1468
+ * ` err ` {Error}
1469
+ * ` stats ` {fs.Stats}
1451
1470
1452
1471
Asynchronous lstat(2). The callback gets two arguments ` (err, stats) ` where
1453
1472
` stats ` is a [ ` fs.Stats ` ] [ ] object. ` lstat() ` is identical to ` stat() ` ,
@@ -1485,6 +1504,7 @@ changes:
1485
1504
* ` path ` {string|Buffer|URL}
1486
1505
* ` mode ` {integer} ** Default:** ` 0o777 `
1487
1506
* ` callback ` {Function}
1507
+ * ` err ` {Error}
1488
1508
1489
1509
Asynchronous mkdir(2). No arguments other than a possible exception are given
1490
1510
to the completion callback. ` mode ` defaults to ` 0o777 ` .
@@ -1521,6 +1541,8 @@ changes:
1521
1541
* ` options ` {string|Object}
1522
1542
* ` encoding ` {string} ** Default:** ` 'utf8' `
1523
1543
* ` callback ` {Function}
1544
+ * ` err ` {Error}
1545
+ * ` folder ` {string}
1524
1546
1525
1547
Creates a unique temporary directory.
1526
1548
@@ -1603,6 +1625,8 @@ changes:
1603
1625
* ` flags ` {string|number}
1604
1626
* ` mode ` {integer} ** Default:** ` 0o666 `
1605
1627
* ` callback ` {Function}
1628
+ * ` err ` {Error}
1629
+ * ` fd ` {integer}
1606
1630
1607
1631
Asynchronous file open. See open(2). ` flags ` can be:
1608
1632
@@ -1721,6 +1745,9 @@ changes:
1721
1745
* ` length ` {integer}
1722
1746
* ` position ` {integer}
1723
1747
* ` callback ` {Function}
1748
+ * ` err ` {Error}
1749
+ * ` bytesRead ` {integer}
1750
+ * ` buffer ` {Buffer}
1724
1751
1725
1752
Read data from the file specified by ` fd ` .
1726
1753
@@ -1761,6 +1788,8 @@ changes:
1761
1788
* ` options ` {string|Object}
1762
1789
* ` encoding ` {string} ** Default:** ` 'utf8' `
1763
1790
* ` callback ` {Function}
1791
+ * ` err ` {Error}
1792
+ * ` files ` {string[ ] |Buffer[ ] }
1764
1793
1765
1794
Asynchronous readdir(3). Reads the contents of a directory.
1766
1795
The callback gets two arguments ` (err, files) ` where ` files ` is an array of
@@ -1819,6 +1848,8 @@ changes:
1819
1848
* ` encoding ` {string|null} ** Default:** ` null `
1820
1849
* ` flag ` {string} ** Default:** ` 'r' `
1821
1850
* ` callback ` {Function}
1851
+ * ` err ` {Error}
1852
+ * ` data ` {string|Buffer}
1822
1853
1823
1854
Asynchronously reads the entire contents of a file. Example:
1824
1855
@@ -1914,6 +1945,8 @@ changes:
1914
1945
* ` options ` {string|Object}
1915
1946
* ` encoding ` {string} ** Default:** ` 'utf8' `
1916
1947
* ` callback ` {Function}
1948
+ * ` err ` {Error}
1949
+ * ` linkString ` {string|Buffer}
1917
1950
1918
1951
Asynchronous readlink(2). The callback gets two arguments `(err,
1919
1952
linkString)`.
@@ -1989,6 +2022,8 @@ changes:
1989
2022
* ` options ` {string|Object}
1990
2023
* ` encoding ` {string} ** Default:** ` 'utf8' `
1991
2024
* ` callback ` {Function}
2025
+ * ` err ` {Error}
2026
+ * ` resolvedPath ` {string|Buffer}
1992
2027
1993
2028
Asynchronous realpath(3). The ` callback ` gets two arguments `(err,
1994
2029
resolvedPath)` . May use ` process.cwd` to resolve relative paths.
@@ -2057,6 +2092,7 @@ changes:
2057
2092
* ` oldPath ` {string|Buffer|URL}
2058
2093
* ` newPath ` {string|Buffer|URL}
2059
2094
* ` callback ` {Function}
2095
+ * ` err ` {Error}
2060
2096
2061
2097
Asynchronous rename(2). No arguments other than a possible exception are given
2062
2098
to the completion callback.
@@ -2093,6 +2129,7 @@ changes:
2093
2129
2094
2130
* ` path ` {string|Buffer|URL}
2095
2131
* ` callback ` {Function}
2132
+ * ` err ` {Error}
2096
2133
2097
2134
Asynchronous rmdir(2). No arguments other than a possible exception are given
2098
2135
to the completion callback.
@@ -2133,6 +2170,8 @@ changes:
2133
2170
2134
2171
* ` path ` {string|Buffer|URL}
2135
2172
* ` callback ` {Function}
2173
+ * ` err ` {Error}
2174
+ * ` stats ` {fs.Stats}
2136
2175
2137
2176
Asynchronous stat(2). The callback gets two arguments ` (err, stats) ` where
2138
2177
` stats ` is an [ ` fs.Stats ` ] [ ] object.
@@ -2176,6 +2215,7 @@ changes:
2176
2215
* ` path ` {string|Buffer|URL}
2177
2216
* ` type ` {string} ** Default:** ` 'file' `
2178
2217
* ` callback ` {Function}
2218
+ * ` err ` {Error}
2179
2219
2180
2220
Asynchronous symlink(2). No arguments other than a possible exception are given
2181
2221
to the completion callback. The ` type ` argument can be set to ` 'dir' ` ,
@@ -2222,6 +2262,7 @@ changes:
2222
2262
* ` path ` {string|Buffer}
2223
2263
* ` len ` {integer} ** Default:** ` 0 `
2224
2264
* ` callback ` {Function}
2265
+ * ` err ` {Error}
2225
2266
2226
2267
Asynchronous truncate(2). No arguments other than a possible exception are
2227
2268
given to the completion callback. A file descriptor can also be passed as the
@@ -2254,6 +2295,7 @@ changes:
2254
2295
2255
2296
* ` path ` {string|Buffer|URL}
2256
2297
* ` callback ` {Function}
2298
+ * ` err ` {Error}
2257
2299
2258
2300
Asynchronous unlink(2). No arguments other than a possible exception are given
2259
2301
to the completion callback.
@@ -2279,6 +2321,8 @@ added: v0.1.31
2279
2321
2280
2322
* ` filename ` {string|Buffer}
2281
2323
* ` listener ` {Function|undefined} ** Default:** ` undefined `
2324
+ * ` eventType ` {string}
2325
+ * ` filename ` {string|Buffer}
2282
2326
2283
2327
Stop watching for changes on ` filename ` . If ` listener ` is specified, only that
2284
2328
particular listener is removed. Otherwise, * all* listeners are removed,
@@ -2313,6 +2357,7 @@ changes:
2313
2357
* ` atime ` {integer}
2314
2358
* ` mtime ` {integer}
2315
2359
* ` callback ` {Function}
2360
+ * ` err ` {Error}
2316
2361
2317
2362
Change file timestamps of the file referenced by the supplied path.
2318
2363
@@ -2369,6 +2414,8 @@ changes:
2369
2414
* ` encoding ` {string} Specifies the character encoding to be used for the
2370
2415
filename passed to the listener. ** Default:** ` 'utf8' `
2371
2416
* ` listener ` {Function|undefined} ** Default:** ` undefined `
2417
+ * ` eventType ` {string}
2418
+ * ` filename ` {string|Buffer}
2372
2419
2373
2420
Watch for changes on ` filename ` , where ` filename ` is either a file or a
2374
2421
directory. The returned object is a [ ` fs.FSWatcher ` ] [ ] .
@@ -2471,6 +2518,8 @@ changes:
2471
2518
* ` persistent ` {boolean} ** Default:** ` true `
2472
2519
* ` interval ` {integer} ** Default:** ` 5007 `
2473
2520
* ` listener ` {Function}
2521
+ * ` current ` {fs.Stats}
2522
+ * ` previous ` {fs.Stats}
2474
2523
2475
2524
Watch for changes on ` filename ` . The callback ` listener ` will be called each
2476
2525
time the file is accessed.
@@ -2530,6 +2579,9 @@ changes:
2530
2579
* ` length ` {integer}
2531
2580
* ` position ` {integer}
2532
2581
* ` callback ` {Function}
2582
+ * ` err ` {Error}
2583
+ * ` bytesWritten ` {integer}
2584
+ * ` buffer ` {Buffer|Uint8Array}
2533
2585
2534
2586
Write ` buffer ` to the file specified by ` fd ` .
2535
2587
@@ -2572,6 +2624,9 @@ changes:
2572
2624
* ` position ` {integer}
2573
2625
* ` encoding ` {string}
2574
2626
* ` callback ` {Function}
2627
+ * ` err ` {Error}
2628
+ * ` written ` {integer}
2629
+ * ` string ` {string}
2575
2630
2576
2631
Write ` string ` to the file specified by ` fd ` . If ` string ` is not a string, then
2577
2632
the value will be coerced to one.
@@ -2621,6 +2676,7 @@ changes:
2621
2676
* ` mode ` {integer} ** Default:** ` 0o666 `
2622
2677
* ` flag ` {string} ** Default:** ` 'w' `
2623
2678
* ` callback ` {Function}
2679
+ * ` err ` {Error}
2624
2680
2625
2681
Asynchronously writes data to a file, replacing the file if it already exists.
2626
2682
` data ` can be a string or a buffer.
0 commit comments