I walked all the way from home to the library, only to find it closed中only后为什么用to?

问题描述:

I walked all the way from home to the library, only to find it closed中only后为什么用to?

英文中only to do表示结果,是属于比较特殊的结构,后面常跟find等,表示“结果却发现”之意.
如:i went there early only to find that nobody was there.我一大早到那儿,结果却发现一个人都没有.
楼主的译文:我一路从家径直到图书馆,结果却发现门没开.