updateConttent method

Future<void> updateConttent()

Implementation

Future<void> updateConttent() async {
  late File file = File(path);

  if (await file.exists()) {
    content = await file.readAsBytes();
  } else {
    file = File(dustbinPath);

    if (await file.exists()) {
      content = await file.readAsBytes();
    } else {
      logger.warning(className, 'updateConttent失败,path和dustbinPath中不存在$path', StackTrace.current);
    }
  }
}