loadPath method

dynamic loadPath()
inherited

Implementation

loadPath() async {
  var p = await getApplicationDocumentsDirectory(); //Directory('/storage/emulated/0/Download/${app_Name.replaceAll(" ", "")}'); //await getExternalStorageDirectories(type: StorageDirectory.downloads);
  if (p.existsSync()) {
    XLibStorage.filePath = p.path.replaceAll("app_flutter", "files");
  } else {
    final Directory _appDirNewFolder = await p.create(recursive: true);
    XLibStorage.filePath = _appDirNewFolder.path.replaceAll("app_flutter", "files");
  }
}