Skip to content

Commit 6be4a43

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: [Filesystem] Add more information about dumpFile
2 parents 835102a + db62085 commit 6be4a43

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/filesystem.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,11 @@ exception on failure::
293293
~~~~~~~~~~~~
294294

295295
:method:`Symfony\\Component\\Filesystem\\Filesystem::dumpFile` saves the given
296-
contents into a file. It does this in an atomic manner: it writes a temporary
297-
file first and then moves it to the new file location when it's finished.
298-
This means that the user will always see either the complete old file or
299-
complete new file (but never a partially-written file)::
296+
contents into a file (creating the file and its directory if they don't exist).
297+
It does this in an atomic manner: it writes a temporary file first and then moves
298+
it to the new file location when it's finished. This means that the user will
299+
always see either the complete old file or complete new file (but never a
300+
partially-written file)::
300301

301302
$filesystem->dumpFile('file.txt', 'Hello World');
302303

0 commit comments

Comments
 (0)