Skip to content

Commit eb3f718

Browse files
zairigimadjaviereguiluz
authored andcommitted
Update filesystem.rst
1 parent 4db98ff commit eb3f718

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)