Skip to content

Commit 28a62c8

Browse files
committed
Clear stat cache before driver op
1 parent 0c45a56 commit 28a62c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Internal/FileTask.php

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
use Amp\File\BlockingDriver;
55
use Amp\File\BlockingHandle;
66
use Amp\File\FilesystemException;
7+
use Amp\File\StatCache;
78
use Amp\Parallel\Worker\Environment;
89
use Amp\Parallel\Worker\Task;
910

@@ -119,6 +120,8 @@ public function run(Environment $environment) {
119120
}
120121
}
121122

123+
StatCache::clear();
124+
122125
switch ($this->operation) {
123126
case "stat":
124127
case "unlink":

0 commit comments

Comments
 (0)