writeFileContent method
Writes content to a file with error handling
filePath - Path to write to
content - Content to write
Returns true if successful
Implementation
bool writeFileContent(String filePath, String content) {
try {
createDir(dirname(filePath));
filePath.write(content);
return true;
} catch (e) {
StatusHelper.warning('Failed to write file $filePath: $e');
return false;
}
}