prepareFile method

Future<File> prepareFile(
  1. LogFile file
)

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");
}