Only delete files/folders if they exist on filesystem
This broke "add a folder" in manage-files.feature
This commit is contained in:
parent
7e37cc8e00
commit
3f13791404
|
@ -205,7 +205,7 @@ JS;
|
|||
public function cleanAssetsAfterScenario(ScenarioEvent $event)
|
||||
{
|
||||
foreach(\File::get() as $file) {
|
||||
$file->delete();
|
||||
if(file_exists($file->getFullPath())) $file->delete();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue