Only delete files/folders if they exist on filesystem

This broke "add a folder" in manage-files.feature
This commit is contained in:
Ingo Schommer 2013-11-06 01:22:30 +01:00
parent 7e37cc8e00
commit 3f13791404
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ JS;
public function cleanAssetsAfterScenario(ScenarioEvent $event)
{
foreach(\File::get() as $file) {
$file->delete();
if(file_exists($file->getFullPath())) $file->delete();
}
}