getDeploymentBasePath method
The base path for storing all deployment related files on the form
<localApplicationPath>/carp/deployments/<study_deployment_id>
Implementation
Future<String> getDeploymentBasePath(String studyDeploymentId) async {
if (_deploymentBasePaths[studyDeploymentId] == null) {
final path =
'${await carpBasePath}/$CARP_DEPLOYMENT_FILE_PATH/$studyDeploymentId';
_deploymentBasePaths[studyDeploymentId] = path;
Directory(path).createSync(recursive: true);
}
return _deploymentBasePaths[studyDeploymentId]!;
}