mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
change iOS default local path to Documents (#68)
This commit is contained in:
@@ -203,6 +203,14 @@ class LocalManager with ChangeNotifier {
|
|||||||
} else {
|
} else {
|
||||||
path = FilePath.join(App.dataPath, 'local');
|
path = FilePath.join(App.dataPath, 'local');
|
||||||
}
|
}
|
||||||
|
} else if (App.isIOS) {
|
||||||
|
var oldPath = FilePath.join(App.dataPath, 'local');
|
||||||
|
if (Directory(oldPath).existsSync() && Directory(oldPath).listSync().isNotEmpty) {
|
||||||
|
path = oldPath;
|
||||||
|
} else {
|
||||||
|
var directory = await getApplicationDocumentsDirectory();
|
||||||
|
path = FilePath.join(directory.path, 'local');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
path = FilePath.join(App.dataPath, 'local');
|
path = FilePath.join(App.dataPath, 'local');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user