mirror of
https://github.com/danog/file.git
synced 2024-11-26 11:54:54 +01:00
Clear stat cache before driver op
This commit is contained in:
parent
0c45a5674e
commit
28a62c8f5f
@ -4,6 +4,7 @@ namespace Amp\File\Internal;
|
|||||||
use Amp\File\BlockingDriver;
|
use Amp\File\BlockingDriver;
|
||||||
use Amp\File\BlockingHandle;
|
use Amp\File\BlockingHandle;
|
||||||
use Amp\File\FilesystemException;
|
use Amp\File\FilesystemException;
|
||||||
|
use Amp\File\StatCache;
|
||||||
use Amp\Parallel\Worker\Environment;
|
use Amp\Parallel\Worker\Environment;
|
||||||
use Amp\Parallel\Worker\Task;
|
use Amp\Parallel\Worker\Task;
|
||||||
|
|
||||||
@ -119,6 +120,8 @@ class FileTask implements Task {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
StatCache::clear();
|
||||||
|
|
||||||
switch ($this->operation) {
|
switch ($this->operation) {
|
||||||
case "stat":
|
case "stat":
|
||||||
case "unlink":
|
case "unlink":
|
||||||
|
Loading…
Reference in New Issue
Block a user