getDataBasePath method

Future<String> getDataBasePath(
  1. String studyDeploymentId
)

The base path for storing data (e.g. data files and media files) for a deployment. The folder is created if it does not exist.

<localApplicationPath>/carp/deployments/<study_deployment_id>/data

Implementation

Future<String> getDataBasePath(String studyDeploymentId) async => (await Directory(
  '${await getDeploymentBasePath(studyDeploymentId)}/$CARP_DATA_FILE_PATH',
).create(recursive: true)).path;