| 1 |
fs.access(path, callback) |
| 2 |
fs.accessSync(path) Synchronous version of fs.access(). This throws if any accessibility checks fail, and does nothing otherwise. |
| 3 |
fs.appendFile(file, data, callback) Asynchronously append data to a file, creating the file if it does not yet exist. data can be a string or a buffer. |
| 4 |
fs.appendFileSync(file, data) The synchronous version of fs.appendFile(). Returns undefined. |
| 5 |
fs.chmod(path, mode, callback) Asynchronous chmod. |
| 6 |
fs.chmodSync(path, mode) Synchronous chmod. Returns undefined. |
| 7 |
fs.chown(path, uid, gid, callback) Asynchronous chown(. |
| 8 |
fs.chownSync(path, uid, gid) Synchronous chown. Returns undefined. |
| 9 |
fs.close(fd, callback) Asynchronous close. |
| 10 |
fs.closeSync(fd) Synchronous close. Returns undefined. |
| 11 |
fs.createReadStream(path) Returns a new ReadStream object. (See Readable Stream). |
| 12 |
fs.createWriteStream(path) Returns a new WriteStream object. (See Writable Stream). |
| 13 |
fs.fchmod(fd, mode, callback) Asynchronous fchmod. |
| 14 |
fs.fchmodSync(fd, mode) Synchronous fchmod. Returns undefined. |
| 15 |
fs.fchown(fd, uid, gid, callback) Asynchronous fchown. |
| 16 |
fs.fchownSync(fd, uid, gid) Synchronous fchown. Returns undefined. |
| 17 |
fs.fdatasync(fd, callback) Asynchronous fdatasync. |
| 18 |
fs.fdatasyncSync(fd) Synchronous fdatasync. Returns undefined. |
| 19 |
fs.fstat(fd, callback) Asynchronous fstat. The callback gets two arguments (err, stats) where stats is a fs.Stats object. fstat() is identical to stat(), except that the file to be stat-ed is specified by the file descriptor fd. |
| 20 |
fs.fstatSync(fd) Synchronous fstat. Returns an instance of fs.Stats. |
| 21 |
fs.fsync(fd, callback) Asynchronous fsync. |
| 22 |
fs.fsyncSync(fd) Synchronous fsync. Returns undefined. |
| 23 |
fs.ftruncate(fd, len, callback) Asynchronous ftruncate. No arguments other than a possible exception are given to the completion callback. |
| 24 |
fs.ftruncateSync(fd, len) Synchronous ftruncate. Returns undefined. |
| 25 |
fs.futimes(fd, atime, mtime, callback) Change the file timestamps of a file referenced by the supplied file descriptor. |
| 26 |
fs.futimesSync(fd, atime, mtime) Synchronous version of fs.futimes(). Returns undefined. |
| 27 |
fs.lchmod(path, mode, callback) Asynchronous lchmod. Only available on Mac OS X. |
| 28 |
fs.lchmodSync(path, mode) Synchronous lchmod. Returns undefined. |
| 29 |
fs.lchown(path, uid, gid, callback) Asynchronous lchown. |
| 30 |
fs.lchownSync(path, uid, gid) Synchronous lchown. Returns undefined. |
| 31 |
fs.link(srcpath, dstpath, callback) Asynchronous link. |
| 32 |
fs.linkSync(srcpath, dstpath) Synchronous link. Returns undefined. |
| 33 |
fs.lstat(path, callback) Asynchronous lstat. The callback gets two arguments (err, stats) where stats is a fs.Stats object. lstat() is identical to stat(), except that if path is a symbolic link, then the link itself is stat-ed, not the file that it refers to. |
| 34 |
fs.lstatSync(path) Synchronous lstat. Returns an instance of fs.Stats. |
| 35 |
fs.mkdir(path, callback) Asynchronous mkdir. mode defaults to 0o777. |
| 36 |
fs.mkdirSync(path) Synchronous mkdir. Returns undefined. |
| 37 |
fs.open(path, flags, callback) Asynchronous file open. |
Комментарии