localFile method

Future<File> localFile(
  1. String logFilePath
)

创建一个指向logFilePath的引用

Implementation

Future<File> localFile(String logFilePath) async {
  final tempFile = File(logFilePath);
  if (tempFile.existsSync()) return tempFile;
  return await File(logFilePath).create(recursive: true);
}