[Filesystem] Added silence operator to rename().

This commit is contained in:
Alessandro Desantis 2012-04-10 10:15:18 +02:00
parent 7ce5a526ec
commit 1998f3f5ec

View File

@ -137,7 +137,7 @@ class Filesystem
throw new \RuntimeException(sprintf('Cannot rename because the target "%s" already exist.', $target));
}
if (false === rename($origin, $target)) {
if (false === @rename($origin, $target)) {
throw new \RuntimeException(sprintf('Cannot rename "%s" to "%s".', $origin, $target));
}
}