local migrate: delete recursively

This commit is contained in:
Pacalini
2024-10-31 22:41:33 +08:00
parent 13c775b7ce
commit d48edc6331

View File

@@ -166,7 +166,7 @@ class LocalManager with ChangeNotifier {
} catch (e) { } catch (e) {
return e.toString(); return e.toString();
} }
await Directory(path).deleteIgnoreError(); await Directory(path).deleteIgnoreError(recursive:true);
path = newPath; path = newPath;
return null; return null;
} }