deleteLog method

Future<bool> deleteLog(
  1. String filePath
)

删除指定filePath的日志文件 返回删除结果

Implementation

Future<bool> deleteLog(String filePath) async {
  try {
    final file = await localFile(filePath);
    if(!file.existsSync()) return true;
    await file.delete(recursive: false);
    return true;
  } catch(e) {
    rethrow;
  }
}