Writes to a given path.
The path to write to. If this points to a hierarchy, then all hierarchy nodes should be created.
Optionaloptions: IZStreamWriteOptionsThe options for the write.
The total number of bytes written, or 0 if buffer is falsy. If this is writing or creating directories, then 0 should be returned.
An object that can write to a stream.