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 e50a88a commit 39ef59cCopy full SHA for 39ef59c
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