setPath function
Implementation
Future<String?> setPath() async {
try {
Directory _path = await getTemporaryDirectory();
String _localPath = _path.path + Platform.pathSeparator + 'uxp';
final savedDir = Directory(_localPath);
bool hasExisted = await savedDir.exists();
if (!hasExisted) {
savedDir.create();
}
return _localPath;
} catch (e) {
//print(e);
return null;
}
}