| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 252d08a commit 6e06d0e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -324,6 +324,7 @@ added: v0.11.15 | |||
| 324 | 324 | * `path` {string|Buffer} | |
| 325 | 325 | * `mode` {integer} | |
| 326 | 326 | * `callback` {Function} | |
| 327 | + * `err` {Error} | ||
| 327 | 328 | ||
| 328 | 329 | Tests a user's permissions for the file or directory specified by `path`. | |
| 329 | 330 | The `mode` argument is an optional integer that specifies the accessibility | |
@@ -460,6 +461,7 @@ added: v0.6.7 | |||
| 460 | 461 | * `mode` {integer} default = `0o666` | |
| 461 | 462 | * `flag` {string} default = `'a'` | |
| 462 | 463 | * `callback` {Function} | |
| 464 | + * `err` {Error} | ||
| 463 | 465 | ||
| 464 | 466 | Asynchronously append data to a file, creating the file if it does not yet exist. | |
| 465 | 467 | `data` can be a string or a buffer. | |
@@ -506,6 +508,7 @@ added: v0.1.30 | |||
| 506 | 508 | * `path` {string|Buffer} | |
| 507 | 509 | * `mode` {integer} | |
| 508 | 510 | * `callback` {Function} | |
| 511 | + * `err` {Error} | ||
| 509 | 512 | ||
| 510 | 513 | Asynchronous chmod(2). No arguments other than a possible exception are given | |
| 511 | 514 | to the completion callback. | |
@@ -529,6 +532,7 @@ added: v0.1.97 | |||
| 529 | 532 | * `uid` {integer} | |
| 530 | 533 | * `gid` {integer} | |
| 531 | 534 | * `callback` {Function} | |
| 535 | + * `err` {Error} | ||
| 532 | 536 | ||
| 533 | 537 | Asynchronous chown(2). No arguments other than a possible exception are given | |
| 534 | 538 | to the completion callback. | |
@@ -551,6 +555,7 @@ added: v0.0.2 | |||
| 551 | 555 | ||
| 552 | 556 | * `fd` {integer} | |
| 553 | 557 | * `callback` {Function} | |
| 558 | + * `err` {Error} | ||
| 554 | 559 | ||
| 555 | 560 | Asynchronous close(2). No arguments other than a possible exception are given | |
| 556 | 561 | to the completion callback. | |
@@ -688,6 +693,7 @@ deprecated: v1.0.0 | |||
| 688 | 693 | ||
| 689 | 694 | * `path` {string|Buffer} | |
| 690 | 695 | * `callback` {Function} | |
| 696 | + * `exists` {Boolean} | ||
| 691 | 697 | ||
| 692 | 698 | Test whether or not the given path exists by checking with the file system. | |
| 693 | 699 | Then call the `callback` argument with either true or false. Example: | |
@@ -806,6 +812,7 @@ added: v0.4.7 | |||
| 806 | 812 | * `fd` {integer} | |
| 807 | 813 | * `mode` {integer} | |
| 808 | 814 | * `callback` {Function} | |
| 815 | + * `err` {Error} | ||
| 809 | 816 | ||
| 810 | 817 | Asynchronous fchmod(2). No arguments other than a possible exception | |
| 811 | 818 | are given to the completion callback. | |
@@ -829,6 +836,7 @@ added: v0.4.7 | |||
| 829 | 836 | * `uid` {integer} | |
| 830 | 837 | * `gid` {integer} | |
| 831 | 838 | * `callback` {Function} | |
| 839 | + * `err` {Error} | ||
| 832 | 840 | ||
| 833 | 841 | Asynchronous fchown(2). No arguments other than a possible exception are given | |
| 834 | 842 | to the completion callback. | |
@@ -851,6 +859,7 @@ added: v0.1.96 | |||
| 851 | 859 | ||
| 852 | 860 | * `fd` {integer} | |
| 853 | 861 | * `callback` {Function} | |
| 862 | + * `err` {Error} | ||
| 854 | 863 | ||
| 855 | 864 | Asynchronous fdatasync(2). No arguments other than a possible exception are | |
| 856 | 865 | given to the completion callback. | |
@@ -871,6 +880,8 @@ added: v0.1.95 | |||
| 871 | 880 | ||
| 872 | 881 | * `fd` {integer} | |
| 873 | 882 | * `callback` {Function} | |
| 883 | + * `err` {Error} | ||
| 884 | + * `stats` {fs.Stats} | ||
| 874 | 885 | ||
| 875 | 886 | Asynchronous fstat(2). The callback gets two arguments `(err, stats)` where | |
| 876 | 887 | `stats` is an [`fs.Stats`][] object. `fstat()` is identical to [`stat()`][], | |
@@ -892,6 +903,7 @@ added: v0.1.96 | |||
| 892 | 903 | ||
| 893 | 904 | * `fd` {integer} | |
| 894 | 905 | * `callback` {Function} | |
| 906 | + * `err` {Error} | ||
| 895 | 907 | ||
| 896 | 908 | Asynchronous fsync(2). No arguments other than a possible exception are given | |
| 897 | 909 | to the completion callback. | |
@@ -913,6 +925,7 @@ added: v0.8.6 | |||
| 913 | 925 | * `fd` {integer} | |
| 914 | 926 | * `len` {integer} default = `0` | |
| 915 | 927 | * `callback` {Function} | |
| 928 | + * `err` {Error} | ||
| 916 | 929 | ||
| 917 | 930 | Asynchronous ftruncate(2). No arguments other than a possible exception are | |
| 918 | 931 | given to the completion callback. | |
@@ -977,6 +990,7 @@ added: v0.4.2 | |||
| 977 | 990 | * `atime` {integer} | |
| 978 | 991 | * `mtime` {integer} | |
| 979 | 992 | * `callback` {Function} | |
| 993 | + * `err` {Error} | ||
| 980 | 994 | ||
| 981 | 995 | Change the file timestamps of a file referenced by the supplied file | |
| 982 | 996 | descriptor. | |
@@ -1003,6 +1017,7 @@ deprecated: v0.4.7 | |||
| 1003 | 1017 | * `path` {string|Buffer} | |
| 1004 | 1018 | * `mode` {integer} | |
| 1005 | 1019 | * `callback` {Function} | |
| 1020 | + * `err` {Error} | ||
| 1006 | 1021 | ||
| 1007 | 1022 | Asynchronous lchmod(2). No arguments other than a possible exception | |
| 1008 | 1023 | are given to the completion callback. | |
@@ -1028,6 +1043,7 @@ deprecated: v0.4.7 | |||
| 1028 | 1043 | * `uid` {integer} | |
| 1029 | 1044 | * `gid` {integer} | |
| 1030 | 1045 | * `callback` {Function} | |
| 1046 | + * `err` {Error} | ||
| 1031 | 1047 | ||
| 1032 | 1048 | Asynchronous lchown(2). No arguments other than a possible exception are given | |
| 1033 | 1049 | to the completion callback. | |
@@ -1051,6 +1067,7 @@ added: v0.1.31 | |||
| 1051 | 1067 | * `existingPath` {string|Buffer} | |
| 1052 | 1068 | * `newPath` {string|Buffer} | |
| 1053 | 1069 | * `callback` {Function} | |
| 1070 | + * `err` {Error} | ||
| 1054 | 1071 | ||
| 1055 | 1072 | Asynchronous link(2). No arguments other than a possible exception are given to | |
| 1056 | 1073 | the completion callback. | |
@@ -1072,6 +1089,8 @@ added: v0.1.30 | |||
| 1072 | 1089 | ||
| 1073 | 1090 | * `path` {string|Buffer} | |
| 1074 | 1091 | * `callback` {Function} | |
| 1092 | + * `err` {Error} | ||
| 1093 | + * `stats` {fs.Stats} | ||
| 1075 | 1094 | ||
| 1076 | 1095 | Asynchronous lstat(2). The callback gets two arguments `(err, stats)` where | |
| 1077 | 1096 | `stats` is a [`fs.Stats`][] object. `lstat()` is identical to `stat()`, | |
@@ -1095,6 +1114,7 @@ added: v0.1.8 | |||
| 1095 | 1114 | * `path` {string|Buffer} | |
| 1096 | 1115 | * `mode` {integer} | |
| 1097 | 1116 | * `callback` {Function} | |
| 1117 | + * `err` {Error} | ||
| 1098 | 1118 | ||
| 1099 | 1119 | Asynchronous mkdir(2). No arguments other than a possible exception are given | |
| 1100 | 1120 | to the completion callback. `mode` defaults to `0o777`. | |
@@ -1118,6 +1138,8 @@ added: v5.10.0 | |||
| 1118 | 1138 | * `options` {string|Object} | |
| 1119 | 1139 | * `encoding` {string} default = `'utf8'` | |
| 1120 | 1140 | * `callback` {Function} | |
| 1141 | + * `err` {Error} | ||
| 1142 | + * `folder` {string} | ||
| 1121 | 1143 | ||
| 1122 | 1144 | Creates a unique temporary directory. | |
| 1123 | 1145 | ||
@@ -1195,6 +1217,8 @@ added: v0.0.2 | |||
| 1195 | 1217 | * `flags` {string|number} | |
| 1196 | 1218 | * `mode` {integer} | |
| 1197 | 1219 | * `callback` {Function} | |
| 1220 | + * `err` {Error} | ||
| 1221 | + * `fd` {integer} | ||
| 1198 | 1222 | ||
| 1199 | 1223 | Asynchronous file open. See open(2). `flags` can be: | |
| 1200 | 1224 | ||
@@ -1301,6 +1325,9 @@ added: v0.0.2 | |||
| 1301 | 1325 | * `length` {integer} | |
| 1302 | 1326 | * `position` {integer} | |
| 1303 | 1327 | * `callback` {Function} | |
| 1328 | + * `err` {Error} | ||
| 1329 | + * `bytesRead` {integer} | ||
| 1330 | + * `buffer` {Buffer} | ||
| 1304 | 1331 | ||
| 1305 | 1332 | Read data from the file specified by `fd`. | |
| 1306 | 1333 | ||
@@ -1326,6 +1353,8 @@ added: v0.1.8 | |||
| 1326 | 1353 | * `options` {string|Object} | |
| 1327 | 1354 | * `encoding` {string} default = `'utf8'` | |
| 1328 | 1355 | * `callback` {Function} | |
| 1356 | + * `err` {Error} | ||
| 1357 | + * `files` {string[]|Buffer[]} | ||
| 1329 | 1358 | ||
| 1330 | 1359 | Asynchronous readdir(3). Reads the contents of a directory. | |
| 1331 | 1360 | The callback gets two arguments `(err, files)` where `files` is an array of | |
@@ -1363,6 +1392,8 @@ added: v0.1.29 | |||
| 1363 | 1392 | * `encoding` {string|null} default = `null` | |
| 1364 | 1393 | * `flag` {string} default = `'r'` | |
| 1365 | 1394 | * `callback` {Function} | |
| 1395 | + * `err` {Error} | ||
| 1396 | + * `data` {string|Buffer} | ||
| 1366 | 1397 | ||
| 1367 | 1398 | Asynchronously reads the entire contents of a file. Example: | |
| 1368 | 1399 | ||
@@ -1441,6 +1472,8 @@ added: v0.1.31 | |||
| 1441 | 1472 | * `options` {string|Object} | |
| 1442 | 1473 | * `encoding` {string} default = `'utf8'` | |
| 1443 | 1474 | * `callback` {Function} | |
| 1475 | + * `err` {Error} | ||
| 1476 | + * `linkString` {string|Buffer} | ||
| 1444 | 1477 | ||
| 1445 | 1478 | Asynchronous readlink(2). The callback gets two arguments `(err, | |
| 1446 | 1479 | linkString)`. | |
@@ -1488,6 +1521,8 @@ added: v0.1.31 | |||
| 1488 | 1521 | * `options` {string|Object} | |
| 1489 | 1522 | * `encoding` {string} default = `'utf8'` | |
| 1490 | 1523 | * `callback` {Function} | |
| 1524 | + * `err` {Error} | ||
| 1525 | + * `resolvedPath` {string|Buffer} | ||
| 1491 | 1526 | ||
| 1492 | 1527 | Asynchronous realpath(3). The `callback` gets two arguments `(err, | |
| 1493 | 1528 | resolvedPath)`. May use `process.cwd` to resolve relative paths. | |
@@ -1525,6 +1560,7 @@ added: v0.0.2 | |||
| 1525 | 1560 | * `oldPath` {string|Buffer} | |
| 1526 | 1561 | * `newPath` {string|Buffer} | |
| 1527 | 1562 | * `callback` {Function} | |
| 1563 | + * `err` {Error} | ||
| 1528 | 1564 | ||
| 1529 | 1565 | Asynchronous rename(2). No arguments other than a possible exception are given | |
| 1530 | 1566 | to the completion callback. | |
@@ -1546,6 +1582,7 @@ added: v0.0.2 | |||
| 1546 | 1582 | ||
| 1547 | 1583 | * `path` {string|Buffer} | |
| 1548 | 1584 | * `callback` {Function} | |
| 1585 | + * `err` {Error} | ||
| 1549 | 1586 | ||
| 1550 | 1587 | Asynchronous rmdir(2). No arguments other than a possible exception are given | |
| 1551 | 1588 | to the completion callback. | |
@@ -1572,6 +1609,8 @@ added: v0.0.2 | |||
| 1572 | 1609 | ||
| 1573 | 1610 | * `path` {string|Buffer} | |
| 1574 | 1611 | * `callback` {Function} | |
| 1612 | + * `err` {Error} | ||
| 1613 | + * `stats` {fs.Stats} | ||
| 1575 | 1614 | ||
| 1576 | 1615 | Asynchronous stat(2). The callback gets two arguments `(err, stats)` where | |
| 1577 | 1616 | `stats` is an [`fs.Stats`][] object. | |
@@ -1604,6 +1643,7 @@ added: v0.1.31 | |||
| 1604 | 1643 | * `path` {string|Buffer} | |
| 1605 | 1644 | * `type` {string} | |
| 1606 | 1645 | * `callback` {Function} | |
| 1646 | + * `err` {Error} | ||
| 1607 | 1647 | ||
| 1608 | 1648 | Asynchronous symlink(2). No arguments other than a possible exception are given | |
| 1609 | 1649 | to the completion callback. The `type` argument can be set to `'dir'`, | |
@@ -1639,6 +1679,7 @@ added: v0.8.6 | |||
| 1639 | 1679 | * `path` {string|Buffer} | |
| 1640 | 1680 | * `len` {integer} default = `0` | |
| 1641 | 1681 | * `callback` {Function} | |
| 1682 | + * `err` {Error} | ||
| 1642 | 1683 | ||
| 1643 | 1684 | Asynchronous truncate(2). No arguments other than a possible exception are | |
| 1644 | 1685 | given to the completion callback. A file descriptor can also be passed as the | |
@@ -1662,6 +1703,7 @@ added: v0.0.2 | |||
| 1662 | 1703 | ||
| 1663 | 1704 | * `path` {string|Buffer} | |
| 1664 | 1705 | * `callback` {Function} | |
| 1706 | + * `err` {Error} | ||
| 1665 | 1707 | ||
| 1666 | 1708 | Asynchronous unlink(2). No arguments other than a possible exception are given | |
| 1667 | 1709 | to the completion callback. | |
@@ -1682,6 +1724,8 @@ added: v0.1.31 | |||
| 1682 | 1724 | ||
| 1683 | 1725 | * `filename` {string|Buffer} | |
| 1684 | 1726 | * `listener` {Function} | |
| 1727 | + * `eventType` {string} | ||
| 1728 | + * `filename` {string|Buffer} | ||
| 1685 | 1729 | ||
| 1686 | 1730 | Stop watching for changes on `filename`. If `listener` is specified, only that | |
| 1687 | 1731 | particular listener is removed. Otherwise, *all* listeners are removed and you | |
@@ -1703,6 +1747,7 @@ added: v0.4.2 | |||
| 1703 | 1747 | * `atime` {integer} | |
| 1704 | 1748 | * `mtime` {integer} | |
| 1705 | 1749 | * `callback` {Function} | |
| 1750 | + * `err` {Error} | ||
| 1706 | 1751 | ||
| 1707 | 1752 | Change file timestamps of the file referenced by the supplied path. | |
| 1708 | 1753 | ||
@@ -1743,6 +1788,8 @@ added: v0.5.10 | |||
| 1743 | 1788 | * `encoding` {string} Specifies the character encoding to be used for the | |
| 1744 | 1789 | filename passed to the listener. default = `'utf8'` | |
| 1745 | 1790 | * `listener` {Function} | |
| 1791 | + * `eventType` {string} | ||
| 1792 | + * `filename` {string|Buffer} | ||
| 1746 | 1793 | ||
| 1747 | 1794 | Watch for changes on `filename`, where `filename` is either a file or a | |
| 1748 | 1795 | directory. The returned object is a [`fs.FSWatcher`][]. | |
@@ -1840,6 +1887,8 @@ added: v0.1.31 | |||
| 1840 | 1887 | * `persistent` {boolean} | |
| 1841 | 1888 | * `interval` {integer} | |
| 1842 | 1889 | * `listener` {Function} | |
| 1890 | + * `current` {fs.Stats} | ||
| 1891 | + * `previous` {fs.Stats} | ||
| 1843 | 1892 | ||
| 1844 | 1893 | Watch for changes on `filename`. The callback `listener` will be called each | |
| 1845 | 1894 | time the file is accessed. | |
@@ -1887,6 +1936,9 @@ added: v0.0.2 | |||
| 1887 | 1936 | * `length` {integer} | |
| 1888 | 1937 | * `position` {integer} | |
| 1889 | 1938 | * `callback` {Function} | |
| 1939 | + * `err` {Error} | ||
| 1940 | + * `bytesWritten` {integer} | ||
| 1941 | + * `buffer` {Buffer|Uint8Array} | ||
| 1890 | 1942 | ||
| 1891 | 1943 | Write `buffer` to the file specified by `fd`. | |
| 1892 | 1944 | ||
@@ -1918,6 +1970,9 @@ added: v0.11.5 | |||
| 1918 | 1970 | * `position` {integer} | |
| 1919 | 1971 | * `encoding` {string} | |
| 1920 | 1972 | * `callback` {Function} | |
| 1973 | + * `err` {Error} | ||
| 1974 | + * `written` {integer} | ||
| 1975 | + * `string` {string} | ||
| 1921 | 1976 | ||
| 1922 | 1977 | Write `string` to the file specified by `fd`. If `string` is not a string, then | |
| 1923 | 1978 | the value will be coerced to one. | |
@@ -1956,6 +2011,7 @@ added: v0.1.29 | |||
| 1956 | 2011 | * `mode` {integer} default = `0o666` | |
| 1957 | 2012 | * `flag` {string} default = `'w'` | |
| 1958 | 2013 | * `callback` {Function} | |
| 2014 | + * `err` {Error} | ||
| 1959 | 2015 | ||
| 1960 | 2016 | Asynchronously writes data to a file, replacing the file if it already exists. | |
| 1961 | 2017 | `data` can be a string or a buffer. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments