fs.FSWatcher

Class: fs.FSWatcher Objects returned from fs.watch() are of this type.

fs.fstat()

fs.fstat(fd, callback) Asynchronous fstat(2). 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.

fs.fstatSync()

fs.fstatSync(fd) Synchronous fstat(2). Returns an instance of fs.Stats.

fs.fdatasync()

fs.fdatasync(fd, callback) Asynchronous fdatasync(2). No arguments other than a possible exception are given to the completion callback.

fs.fchown()

fs.fchown(fd, uid, gid, callback) Asynchronous fchown(2). No arguments other than a possible exception are given to the completion callback.

fs.fchmodSync()

fs.fchmodSync(fd, mode) Synchronous fchmod(2). Returns undefined.

fs.fchownSync()

fs.fchownSync(fd, uid, gid) Synchronous fchown(2). Returns undefined.

fs.fdatasyncSync()

fs.fdatasyncSync(fd) Synchronous fdatasync(2). Returns undefined.

fs.createWriteStream()

fs.createWriteStream(path[, options]) Returns a new WriteStream object. (See Writable Stream). options is an object or string with the following defaults: { flags: 'w', defaultEncoding: 'utf8', fd: null, mode: 0o666, autoClose: true } options may also include a start option to allow writing data at some position past the beginning of the file. Modifying a file rather than replacing it may require a flags mode of r+ rather than the default mode w. The defaultEncoding can be any one o

fs.existsSync()

fs.existsSync(path) Stability: 0 - Deprecated: Use fs.statSync() or fs.accessSync() instead. Synchronous version of fs.exists(). Returns true if the file exists, false otherwise.