resolveTracePath method

String resolveTracePath(
  1. String path
)
inherited

Override to resolve special trace path values (e.g. latest). Return a file system path, or throw if resolution fails.

Implementation

String resolveTracePath(String path) {
  final trimmed = path.trim();
  if (trimmed.isEmpty) {
    throw const io.FileSystemException('Trace path is empty');
  }
  if (io.File(trimmed).existsSync()) return trimmed;
  throw io.FileSystemException('Trace file not found', path);
}