Get File by Path

Permalink
I'm looking for a way to get a File object by the path output in the <img> tag.

Is there a built-in way of doing this or should I parse the path and query the db?

SkyBlueSofa