presto-kinesis/src/main/java/io/prestosql/plugin/kinesis/KinesisTableDescriptionSupplier.java/KinesisTableDescriptionSupplier/listFiles
class KinesisTableDescriptionSupplier:    private static List<Path> listFiles(Path path)
    {
        if (path == null || !Files.isDirectory(path)) {
            throw new PrestoException(KinesisErrorCode.KINESIS_METADATA_EXCEPTION, "Table description location does not exist or is not a directory");
        }
        try (DirectoryStream<Path> stream = Files.newDirectoryStream(path)) {
            ImmutableList.Builder<Path> builder = ImmutableList.builder();
            for (Path file : stream) {
                builder.add(file);
            }

            return builder.build();
        }
        catch (IOException | DirectoryIteratorException e) {
            throwIfUnchecked(e);
            throw new RuntimeException(e);
        }
    }