mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-02-02 19:26:37 +00:00
recursive deletion fix
This commit is contained in:
parent
b431ac89a6
commit
252115e12c
1 changed files with 3 additions and 1 deletions
|
@ -45,7 +45,9 @@ class _ForgotPasswordDesktopViewState
|
|||
if (Platform.isWindows || Platform.isLinux) {
|
||||
await appRoot.delete(recursive: true);
|
||||
} else {
|
||||
appRoot.listSync().forEach((element) => element.deleteSync());
|
||||
appRoot
|
||||
.listSync()
|
||||
.forEach((element) => element.deleteSync(recursive: true));
|
||||
}
|
||||
|
||||
await DB.instance.init();
|
||||
|
|
Loading…
Reference in a new issue