File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -293,10 +293,11 @@ exception on failure::
293
293
~~~~~~~~~~~~
294
294
295
295
: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)::
300
301
301
302
$filesystem->dumpFile('file.txt', 'Hello World');
302
303
You can’t perform that action at this time.
0 commit comments