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 3cf09e9 commit 37106b4Copy full SHA for 37106b4
components/filesystem.rst
@@ -300,6 +300,12 @@ complete new file (but never a partially-written file)::
300
301
The ``file.txt`` file contains ``Hello World`` now.
302
303
+If either the file or its containing directory doesn't exist, this method
304
+creates them.
305
+
306
+After writing the temporary file, this method use :method:`Symfony\\Component\\Filesystem\\Filesystem::rename`
307
+and set the third argument to true, so if the file exists, it will be overridden and the old content inside will be lost.
308
309
``appendToFile``
310
~~~~~~~~~~~~~~~~
311
0 commit comments