Baseflow / Baseflow/flutter_cache_manager
error: FileSystemException: Cannot create file, path = '/data/user/0/com.example.myApp/cache/' (OS Error: Is a directory, errno = 21)
- 主要语言
- Dart
- 星标
- 809
- 派生
- 510
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 1
描述
Hi, thanks for the wonderful plugin i am using the cache manager andtrying to share an image from cache manager like so
```
try {
final ByteData bytes = await rootBundle.load(path);
await Share.file(
fileName, fileName, bytes.buffer.asUint8List(), 'image/png',
text: 'Shared from myApp');
} catch (e) {
print('error: $e');
}
```
i am getting the path from cache manager like
```
Future findCachedImagePath(String imageUrl) async {
var file = await DefaultCacheManager().getSingleFile(imageUrl);
return file.path;
}
```
and it returns to me this string
`/data/user/0/com.example.myApp/cache/libCachedImageData/e6cb8eb0-c1a7-11e9-8d36-096d03933f81.jpeg`
however on trying to share i get this error
`error: FileSystemException: Cannot create file, path = '/data/user/0/com.example.myApp/cache/' (OS Error: Is a directory, errno = 21)`
help would be appriciated, thanks
i am using the plugin esys_flutter_share
贡献指南
调研方向
首先,使用 DefaultCacheManager().getSingleFile 和 issue 中的 Share.file 调用复现所报告的流程。检查失败发生在 flutter_cache_manager 中,还是发生在 esys_flutter_share 集成中;完成的标准是确定负责的组件,并记录可复现的修复方案或明确的交接事项。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- flutter
- 领域
- mobile-dev
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100