Skip to content

Commit 38d9cf3

Browse files
committed
minor #13839 Update filesystem.rst (zairigimad)
This PR was submitted for the 5.0 branch but it was merged into the 3.4 branch instead. Discussion ---------- Update filesystem.rst <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- eb3f718 Update filesystem.rst
2 parents 4db98ff + eb3f718 commit 38d9cf3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

components/filesystem.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ of a single file or directory::
193193
$filesystem->rename('/tmp/processed_video.ogg', '/path/to/store/video_647.ogg');
194194
// renames a directory
195195
$filesystem->rename('/tmp/files', '/path/to/store/files');
196+
// if the target already exists, a third boolean argument is available to overwrite.
197+
$filesystem->rename('/tmp/processed_video2.ogg', '/path/to/store/video_647.ogg', true);
196198

197199
``symlink``
198200
~~~~~~~~~~~

0 commit comments

Comments
 (0)