From 28a62c8f5f3615a74630328d3fcfa1da3b5f5bbc Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Tue, 18 Jul 2017 00:37:07 -0500 Subject: [PATCH] Clear stat cache before driver op --- lib/Internal/FileTask.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Internal/FileTask.php b/lib/Internal/FileTask.php index bd8ba40..ebd7053 100644 --- a/lib/Internal/FileTask.php +++ b/lib/Internal/FileTask.php @@ -4,6 +4,7 @@ namespace Amp\File\Internal; use Amp\File\BlockingDriver; use Amp\File\BlockingHandle; use Amp\File\FilesystemException; +use Amp\File\StatCache; use Amp\Parallel\Worker\Environment; use Amp\Parallel\Worker\Task; @@ -119,6 +120,8 @@ class FileTask implements Task { } } + StatCache::clear(); + switch ($this->operation) { case "stat": case "unlink":