From 9527001399479dcec85d08779d892c5c66479773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pineau?= Date: Mon, 3 Jun 2013 14:55:30 +0200 Subject: [PATCH] Fixed doc block on Filesystem::rename | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - --- src/Symfony/Component/Filesystem/Filesystem.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Component/Filesystem/Filesystem.php b/src/Symfony/Component/Filesystem/Filesystem.php index f89e4f9f9a..6e015b4bd4 100644 --- a/src/Symfony/Component/Filesystem/Filesystem.php +++ b/src/Symfony/Component/Filesystem/Filesystem.php @@ -234,13 +234,13 @@ class Filesystem } /** - * Renames a file. + * Renames a file or a directory. * - * @param string $origin The origin filename - * @param string $target The new filename + * @param string $origin The origin filename or directory + * @param string $target The new filename or directory * @param Boolean $overwrite Whether to overwrite the target if it already exists * - * @throws IOException When target file already exists + * @throws IOException When target file or directory already exists * @throws IOException When origin cannot be renamed */ public function rename($origin, $target, $overwrite = false)