java - Flutter - getApplicationDocumentsDirectory() : 如何在 android 和 iOS 中获取路径
问题描述
Directory tempDir = await getTemporaryDirectory();
String tempPath = tempDir.path;
在android本机代码中,我使用getCacheDir()
我如何getApplicationDocumentsDirectory()
在android中获取路径?当我在 android 中打印getFilesDir()
时,它不匹配getApplicationDocumentsDirectory()
请告诉我 android 和 iOS 中的等价物。
谢谢
解决方案
推荐阅读
- c# - 使用 linq 在 c# 中将 GeoData 转换为 GeoJson
- python - 如何使用 python 提取/下载和网络抓取网站源代码中的 doc.google.com/spreadsheet 链接?
- wordpress - 如何在 WSL + VS Code 和 Docker 容器之间设置文件所有权?
- python - 带有 pytorch 的二维向量化函数
- sql-server - 当第一列有多个单词时,从一列中的字符串中删除最后一个单词并作为字符串放在现有的空列中?SQL 服务器
- amazon-web-services - 如何使用 AWS SAM 更新现有的 lambda 函数
- sas - SAS使用循环根据其他列的值添加新的多列
- javascript - 我想要使用 JS 正则表达式在字符串中出现双字符的计数
- c# - unity raycast CS1003: ',' 预期
- javascript - 如何将html信息重新加载到js文件?