presto-hive/src/main/java/io/prestosql/plugin/hive/CachingDirectoryLister.java/CachingDirectoryLister/list
class CachingDirectoryLister:    @Override
    public RemoteIterator<LocatedFileStatus> list(FileSystem fs, Table table, Path path)
            throws IOException
    {
        List<LocatedFileStatus> files = cache.getIfPresent(path);
        if (files != null) {
            return simpleRemoteIterator(files);
        }
        RemoteIterator<LocatedFileStatus> iterator = fs.listLocatedStatus(path);

        if (tablePrefixes.stream().noneMatch(prefix -> prefix.matches(table.getSchemaTableName()))) {
            return iterator;
        }
        return cachingRemoteIterator(iterator, path);
    }