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