private List<RemoteLogSegmentFileset> listFilesets() {
        Set<Uuid> uuids = Arrays.stream(directory.listFiles())
                .map(file -> getUuid(file.getName()))
                .collect(toSet());

        return uuids.stream()
                .map(uuid -> RemoteLogSegmentFileset.openExistingFileset(this, uuid))
                .collect(Collectors.toList());
    }
The format of a Kafka topic-partition directory. Follows the structure Topic-Partition-Uuid.
storage/src/test/java/org/apache/kafka/server/log/remote/storage/RemoteTopicPartitionDirectory.java