Change from slow async exists() to faster existsSync()
This commit is contained in:
parent
d5c73438c0
commit
46b7deb7d4
|
|
@ -38,6 +38,6 @@ class FileStorage {
|
||||||
Future<bool> exists() async {
|
Future<bool> exists() async {
|
||||||
final file = await _getLocalFile();
|
final file = await _getLocalFile();
|
||||||
|
|
||||||
return file.exists();
|
return file.existsSync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue