fs.watch()

fs.watch(filename[, options][, listener]) Watch for changes on filename, where filename is either a file or a directory. The returned object is a fs.FSWatcher. The second argument is optional. The options if provided should be an object. The supported boolean members are persistent and recursive. persistent indicates whether the process should continue to run as long as files are being watched. recursive indicates whether all subdirectories should be watched, or only the current directory. Thi

fs.write()

fs.write(fd, buffer, offset, length[, position], callback) Write buffer to the file specified by fd. offset and length determine the part of the buffer to be written. position refers to the offset from the beginning of the file where this data should be written. If typeof position !== 'number', the data will be written at the current position. See pwrite(2). The callback will be given three arguments (err, written, buffer) where written specifies how many bytes were written from buffer. Not

fs.watchFile()

fs.watchFile(filename[, options], listener) Watch for changes on filename. The callback listener will be called each time the file is accessed. The options argument may be omitted. If provided, it should be an object. The options object may contain a boolean named persistent that indicates whether the process should continue to run as long as files are being watched. The options object may specify an interval property indicating how often the target should be polled in milliseconds. The defaul

fs.utimesSync()

fs.utimesSync(path, atime, mtime) Synchronous version of fs.utimes(). Returns undefined.

fs.unlink()

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

fs.unwatchFile()

fs.unwatchFile(filename[, listener]) Stop watching for changes on filename. If listener is specified, only that particular listener is removed. Otherwise, all listeners are removed and you have effectively stopped watching filename. Calling fs.unwatchFile() with a filename that is not being watched is a no-op, not an error. Note: fs.watch() is more efficient than fs.watchFile() and fs.unwatchFile(). fs.watch() should be used instead of fs.watchFile() and fs.unwatchFile() when possible.

fs.unlinkSync()

fs.unlinkSync(path) Synchronous unlink(2). Returns undefined.

fs.utimes()

fs.utimes(path, atime, mtime, callback) Change file timestamps of the file referenced by the supplied path. Note: the arguments atime and mtime of the following related functions does follow the below rules: If the value is a numberable string like '123456789', the value would get converted to corresponding number. If the value is NaN or Infinity, the value would get converted to Date.now().

fs.truncateSync()

fs.truncateSync(path, len) Synchronous truncate(2). Returns undefined.

fs.symlinkSync()

fs.symlinkSync(target, path[, type]) Synchronous symlink(2). Returns undefined.