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)
- Vorherrschende Sprache
- Dart
- Sterne
- 809
- Forks
- 510
- Ø Merge
- 6 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- flutter
- Bereich
- mobile-dev
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100