sessions method
List session IDs.
Maps to: sessions
Implementation
@override
List<String> sessions() {
final sessionDir = Directory('${_state.dataDirectory}/sessions');
if (!sessionDir.existsSync()) return [];
return sessionDir
.listSync()
.whereType<File>()
.where((f) => f.path.endsWith('.session.txt'))
.map((f) => f.uri.pathSegments.last.replaceAll('.session.txt', ''))
.toList()
..sort();
}