writeFile = function (path, content, options, cb) {
        fs.writeFile(path.unparsed, content, function (err) {
            cb(_.set(err, 'help',
                `error writing file "${path.unparsed}" for ${options.name || 'unknown-source'}`), path);
        });
    }
Writes the specified content to a file at the provided path.

@param {Object} path - A set of path details for file writing.
@param {String|Buffer} content - The content to be written to the file.
@param {Object} options - A set of options for the current file write.
@param {Function} cb - The callback invoked when the file writing operation has completed, with/without errors.