Check if file exists I have a simple rss feed in my Templates directory, appropriately named "feed.rss". I'm trying to create a link to that file but I don't want that to show up if the file doesn't exist. How might be the best way to only show the link, if the file exists?
I don't think it's possible to do with out-of-the-box Twig/Craft, but it's a super-easy plugin to write.

All you'd need is to give your plugin a Template Variable so that you could do:

{% if craft.myAwesomePlugin.fileExists('somePath') %}
    YES
{% endif %}


And your MyAwesomePluginVariable class has a method like:

public function fileExists($path)
{
    return IOHelper::fileExists($path);
}