graceful-fs functions as a drop-in replacement for the fs module, making various improvements. The improvements are meant to normalize behavior across different platforms and environments, and to make ...
Deletes all contents of a file. When file doesn't exist, it is created with a default mode 0666. A mere alias of fs.truncate(file, 0, callback) with an optional callback for API consistency. Copies a ...