Writes to a given path.
The path to write to. If this points to a hierarchy, then all hierarchy nodes should be created.
The total number of bytes written, or 0 if buffer is falsy. If this is writing or creating directories, then 0 should be returned.
A stream that writes folders.
Writing folders is idempotent. If the folder you are trying to write already exists, then the write operation still succeeds