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)
- Lingua principale
- Dart
- Stelle
- 809
- Fork
- 510
- Merge medio
- 6m
- PR unite (30g)
- 1
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by reproducing the reported flow using DefaultCacheManager().getSingleFile and the Share.file call from the issue. Check whether the failure occurs in flutter_cache_manager or the esys_flutter_share integration; done means identifying the responsible component and documenting a reproducible fix or clear handoff.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- flutter
- Ambito
- mobile-dev
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100