symfony/symfony — pull request #3655 by asm89 (2012-03-20 22:39:18+00:00)
Title: [Filesystem] Add exists function

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/asm89/symfony.png?branch=filesystem-exists)](http://travis-ci.org/asm89/symfony)
Fixes the following tickets: -
Todo: -

The function itself is very trivial. I think it's still useful in the filesystem component, because it will be easier to mock the filesystem for classes that depend on it (instead of using the `Filesystem#remove` etc functions, but then falling back to `file_exists`, which can't be mocked (easily)).