Adds support for a `-p/--parents` flag to the `files.write` command
similar to the one supported by the `files.mkdir` command. If this
is true and the directory for the file is not `"/"`, try to create
the containing directory before writing to the file.
License: MIT
Signed-off-by: Alex Potsides <alex@achingbrain.net>