We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e50a88a + 39ef59c commit 52dc32bCopy full SHA for 52dc32b
README.md
@@ -251,7 +251,9 @@ $filesystem->directory(
251
The following will create `with-a-file.txt` in `lets/make/a/nested/directory` and write `This is amazing!` into that file.
252
253
```php
254
-use React\Filesystem\Node\FileInterface;$filesystem->file(
+use React\Filesystem\Node\FileInterface;
255
+
256
+$filesystem->file(
257
__DIR__ . 'lets' . DIRECTORY_SEPARATOR . 'make' . DIRECTORY_SEPARATOR . 'a' . DIRECTORY_SEPARATOR . 'nested' . DIRECTORY_SEPARATOR . 'directory' . DIRECTORY_SEPARATOR . 'with-a-file.txt'
258
)->createFile()->then(function (FileInterface $file) {
259
return $file->putContents('This is amazing!')
0 commit comments