fileCachePath property

Future<String> fileCachePath

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 = service.app?.studyDeploymentId ?? 'tmp';
      path = await Settings().getCacheBasePath(deploymentId);
    }
    final directory = await Directory('$path/upload').create(recursive: true);
    _fileCachePath = directory.path;
  }

  return _fileCachePath!;
}