filesystem
filesystem copied to clipboard
Evented filesystem access.
This likely depends on libuv-based event loop implementation https://github.com/reactphp/event-loop/pull/17. Once this is done, see https://github.com/reactphp/react/pull/213 for initial starting point on filesystem abstraction.
Initially these call invokers where added to keep `ext-eio` under control. And they made sense in the design for that adapter. But with `uv` adapter coming up this feels less...
Let's face it, this project is currently *beta*, but has been used in production for years :shipit: We're currently following a v0.X.Y release scheme (http://sentimentalversioning.org/). We should finally make this...
With the following code: ``` php
I'm trying to read the contents of a file that does not exist, for example like this: ``` $filesystem->getContents('does-not-exist.txt')->then( function($contents) { echo $contents }, function($error) { echo 'ERROR: ' ....
On PHP 5.5.21 on OSX, this is what sometimes happens when I run (it doesn't always) https://github.com/reactphp/filesystem/blob/master/examples/directory_ls_recursive.php ``` PHP Fatal error: Cannot use object of type React\Filesystem\Eio\RuntimeException as array in...
This PR sets up PHPStan to run on GitHub Actions, as discussed in [discussions#469](https://github.com/orgs/reactphp/discussions/469). ### Overview - [x] Sets up PHPStan to run on GitHub Actions on PHP 8.1 only...
During the initial rewrite this adapter was removed to make the rewrite easier. Since that is now in adding the ext-eio adapter will provide several high performance adapters.
Brings support for Promise v3 to the filesystem package.