From 6af87e04a59fd7c0560414e3991d5cd3f7c2229b Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sat, 22 Jul 2023 20:36:25 +0200 Subject: [PATCH] Fix eio --- src/Driver/EioFilesystemDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Driver/EioFilesystemDriver.php b/src/Driver/EioFilesystemDriver.php index e629604..2cbb8c2 100644 --- a/src/Driver/EioFilesystemDriver.php +++ b/src/Driver/EioFilesystemDriver.php @@ -346,7 +346,7 @@ final class EioFilesystemDriver implements FilesystemDriver public function write(string $path, string $contents): void { - $flags = \EIO_O_RDWR | \EIO_O_CREAT; + $flags = \EIO_O_RDWR | \EIO_O_CREAT | \EIO_O_TRUNC; $mode = \EIO_S_IRUSR | \EIO_S_IWUSR | \EIO_S_IXUSR; $priority = \EIO_PRI_DEFAULT;