getReadPath function
- String relativePath
Gets the correct path for reading files from POD.
Due to a discrepancy in solidpod:
- writePod automatically prepends getDataDirPath() to the fileName
- readPod uses the filePath directly without preprocessing
This function constructs the full path that readPod needs to match what writePod actually writes.
Implementation
Future<String> getReadPath(String relativePath) async {
final dataDir = await getDataDirPath();
return '$dataDir/$relativePath';
}