getFileFromCache

suspend fun getFileFromCache(context: Context, fileName: String): Result<File>

Retrieves a file from cache by name.

Return

Result.Success with the File if it exists, or Result.Failure if not found

Parameters

context

Android context for cache directory access

fileName

Name of the file to retrieve