I checked symfony2 API docs here,
Few File system functions are available in Symfony\Component\Filesystem\Filesystem
i used ‘mkdir‘ and it worked fine but, unable to use ‘exists‘ function
public Boolean exists(string|array|Traversable $files)
It gives error
Fatal error: Call to undefined function Survey\BlogBundle\Controller\exists()
Are you sure it is not
http://php.net/manual/de/function.file-exists.php
Looking at the docs I see that there is an exists function. So maybe you have missed to add a use statement
However you can still use
file_existsDetailed information on how to use filesystem http://symfony.com/doc/master/components/filesystem.html