proofPath method

Future<Directory?> proofPath(
  1. String group
)

Create directory with proofs.

Implementation

Future<Directory?> proofPath(String group) async {
  final safePath = await getSafePath(
    [
      '${workerId}_$worker',
      '${contractId}_$client',
      '${date}_',
      if (serviceId == null) 'GroupProofs' else '${serviceId}_$service',
      'group_${group}_',
    ],
  );
  if (safePath == null) return null;

  return Directory(safePath)..createSync(recursive: true);
}