I'm writing to a file (a writable steam) and I need to close the file once I'm done. I'm not sure of the difference between these two functions or if I need to call them both. Here's what the documentation says:
There is no difference.
From fs.js in the node source:
// There is no shutdown() for files. WriteStream.prototype.destroySoon = WriteStream.prototype.end;