symfony/symfony — pull request #4330 by romainneutron (2012-05-18 14:23:18+00:00)
Title: Add RuntimeException when an action fails

Now, when FileSystem::copy/FileSystem::touch/FileSystem::remove/FileSystem::symlink fails, it throws a \RuntimeException.
Change the 'unlink' function call in the FileSystem::symlink to use the FileSystem::remove for better consistency.

I have not rewritten the mkdir method as it would not be BC (current version continues to try to create directories even if one failed). I think it would be better to rewrite, tell me.