fileCachePath property
The base path for storing all file cache to be uploaded.
Implementation
Future<String> get fileCachePath async {
if (_fileCachePath == null) {
var path = 'cache';
if (Settings().initialized) {
final deploymentId = studyDeploymentId;
path = await Settings().getCacheBasePath(deploymentId);
}
final directory = await Directory('$path/upload').create(recursive: true);
_fileCachePath = directory.path;
}
return _fileCachePath!;
}