createDirWaterbus static method
Future<void>
createDirWaterbus(
)
Implementation
static Future<void> createDirWaterbus() async {
if (kIsWeb) return;
final String? tempWaterbusDir = await tempDirWaterbus;
final String? localStoreWaterbusDir = await localStoreDirWaterbus;
if (tempWaterbusDir == null || localStoreWaterbusDir == null) return;
final Directory myDir = Directory(tempWaterbusDir);
final Directory localDir = Directory(localStoreWaterbusDir);
final Directory? appDirectory = await appDir;
if (!myDir.existsSync()) {
await myDir.create();
}
if (!localDir.existsSync()) {
await localDir.create();
}
if (appDirectory != null && !appDirectory.existsSync()) {
await appDirectory.create();
}
}