We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a896a commit 2ee6bf4Copy full SHA for 2ee6bf4
components/filesystem.rst
@@ -193,6 +193,8 @@ of a single file or directory::
193
$filesystem->rename('/tmp/processed_video.ogg', '/path/to/store/video_647.ogg');
194
// renames a directory
195
$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);
198
199
``symlink``
200
~~~~~~~~~~~
0 commit comments