Encrypted peer-to-peer IM for data security. Own data, own privacy. (Rust+Flutter)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

14 lines
427 B

import 'dart:io' show Directory;
import 'package:path_provider/path_provider.dart';
Future<String> homeDir() async {
final directory = await getApplicationDocumentsDirectory();
//final directory = await getExternalStorageDirectory();
final myDir = new Directory(directory.path + '/esse-pre');
final isThere = await myDir.exists();
if (!isThere) {
await myDir.create(recursive: true);
}
return myDir.path;
}