Write content to file, creating parent directory if needed.
Path to write
String content to write
If directory cannot be created (permissions)
If file cannot be written (permissions, disk full)
Write content to file, creating parent directory if needed.