@Override
    public Map<String, ActivityLog> getLogs() {

        // Do nothing if there are no associated logs
        if (recording == null)
            return super.getLogs();

        // Add associated log (or logs, if this is a directory)
        Map<String, ActivityLog> logs = new HashMap<>(super.getLogs());
        if (recording.isDirectory()) {
            Arrays.asList(recording.listFiles()).stream()
                    .forEach((file) -> addActivityLog(logs, file));
        }
        else
            addActivityLog(logs, recording);

        return logs;

    }
Adds an ActivityLog instance representing the session recording or log
contained within the given file to the given map of logs. If no
ActivityLog can be produced for the given file (it is unreadable or
cannot be identified), this function has no effect.

@param logs
    The map of logs to add the ActivityLog to.

@param file
    The file to produce an ActivityLog instance for.
extensions/guacamole-history-recording-storage/src/main/java/org/apache/guacamole/history/connection/HistoryConnectionRecord.java