getFile method

AppFile getFile(
  1. String path
)

Implementation

AppFile getFile(String path) {
  AppFile appFile = AppFile.empty();
  try {
    if (kIsWeb) {
      appFile.webFile = _webFile.getFile(path);
    } else {
      appFile.file = File("${baseDirectory!.path}/$path");
    }
    return appFile;
  } catch (e) {
    Logger.error(e, "FileService", "getFile", "FILE DOSE NOT EXIST");
    return appFile;
  }
}