Is there an API function to check if an file in a container has a corresponding IContent object?
I would like to check if, for example, the file 'd5f5d04f0a2a4279abea2d1e2edcef6b/6598d114649f403494a5e39ae0e52e12.png' is an asset/media in use in Episerver.
Should be something like:
var content = UrlResolver.Current.Route(new UrlBuilder("your-path"))
IIRC the the folder name (or file name without extension, I usually mix things up) is actually the content guid. You can try to load content based on that guid and see if it returns something