[FrameworkBundle] Fixed a windows compatibility issue

This commit is contained in:
Jordi Boggiano 2010-09-28 21:56:09 +02:00 committed by Fabien Potencier
parent 6aa190b2a6
commit 7ead257798

View File

@ -212,7 +212,7 @@ class Filesystem
} }
foreach ($iterator as $file) { foreach ($iterator as $file) {
$target = $targetDir.'/'.str_replace($originDir.'/', '', $file->getPathname()); $target = $targetDir.'/'.str_replace($originDir.DIRECTORY_SEPARATOR, '', $file->getPathname());
if (is_dir($file)) { if (is_dir($file)) {
$this->mkdirs($target); $this->mkdirs($target);