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":