Symfony2 provides a library that handles various issues that deal with files including:
- getting the path of a file
- retrieving file metadata
- handle custom stream wrappers
We currently have a mature handling of files that is improving by the day with the effort to make files to be entities. Perhaps adopting this library will help that effort. Perhaps it won't. We should find out.