Commit 384d9196 authored by Wilko Manger's avatar Wilko Manger

Add getPathOf method to MatrixCacheManager

parent 0ea03d92
......@@ -32,6 +32,12 @@ class MatrixCacheManager extends BaseCacheManager {
MatrixCacheManager() : super(key, fileFetcher: _fetch);
Future<String> getPathOf(String url) async {
final info = await getFileFromCache(url);
return info?.file?.path;
Future<String> getFilePath() async {
var directory = await getTemporaryDirectory();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment