* Cleans up a file write stream (ends stream, deletes the file). * @method cleanupFileStream * @private * @param stream {WriteStream}
(stream)
| 16 | * @param stream {WriteStream} |
| 17 | */ |
| 18 | function cleanupFileStream (stream) { |
| 19 | const streamPath = stream.path |
| 20 | stream.destroy() |
| 21 | fs.unlinkSync(streamPath) |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * Performs an LDP Copy operation, imports a remote resource to a local path. |