prepareFile method
Implementation
Future<File> prepareFile(model.LogFile file) async {
final path = file.path ?? await getDefaultPath();
await Directory(path).create();
final fileType = Utils.fromEnumToString(file.type).toLowerCase();
return File("$path/${file.name}.$fileType");
}