1
0
mirror of https://github.com/danog/file.git synced 2024-11-30 04:19:39 +01:00

Clear stat cache before driver op

This commit is contained in:
Aaron Piotrowski 2017-07-18 00:37:07 -05:00
parent 0c45a5674e
commit 28a62c8f5f
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB

View File

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