filename property
Full path and filename according to this format:
~/carp/deployments/<study_deployment_id>/data/carp-data-yyyy-mm-dd-hh-mm-ss-ms.json.zip
where the date is in UTC format / zulu time.
Implementation
Future<String> get filename async {
if (_filename == null) {
final created = DateTime.now()
.toUtc()
.toString()
.replaceAll(RegExp(r':'), '-')
.replaceAll(RegExp(r' '), '-')
.replaceAll(RegExp(r'\.'), '-');
await path;
_filename = '$_path/carp-data-$created.json';
}
return _filename!;
}