presto-hive/src/main/java/io/prestosql/plugin/hive/s3/PrestoS3FileSystem.java/PrestoS3FileSystem/directory
class PrestoS3FileSystem:    private boolean directory(Path path)
            throws IOException
    {
        return getFileStatus(path).isDirectory();
    }