Skip to content

Commit 37106b4

Browse files
mohamedGasmiijaviereguiluz
authored andcommitted
[Filesystem] Add more information about dumpFile
1 parent 3cf09e9 commit 37106b4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

components/filesystem.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,12 @@ complete new file (but never a partially-written file)::
300300

301301
The ``file.txt`` file contains ``Hello World`` now.
302302

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+
303309
``appendToFile``
304310
~~~~~~~~~~~~~~~~
305311

0 commit comments

Comments
 (0)