mirror of
https://github.com/danog/file.git
synced 2025-01-22 13:21:13 +01:00
parent
c2313ea280
commit
efeb737b1f
@ -313,6 +313,10 @@ final class EioFilesystemDriver implements FilesystemDriver
|
||||
$modificationTime = $modificationTime ?? \time();
|
||||
$accessTime = $accessTime ?? $modificationTime;
|
||||
|
||||
if (!$this->getStatus($path)) {
|
||||
$this->openFile($path, 'c')->close();
|
||||
}
|
||||
|
||||
$deferred = new DeferredFuture;
|
||||
$this->poll->listen();
|
||||
|
||||
|
@ -363,6 +363,10 @@ final class UvFilesystemDriver implements FilesystemDriver
|
||||
$modificationTime = $modificationTime ?? \time();
|
||||
$accessTime = $accessTime ?? $modificationTime;
|
||||
|
||||
if (!$this->getStatus($path)) {
|
||||
$this->openFile($path, 'c')->close();
|
||||
}
|
||||
|
||||
$deferred = new DeferredFuture;
|
||||
$this->poll->listen();
|
||||
|
||||
|
@ -504,6 +504,9 @@ abstract class FilesystemDriverTest extends FilesystemTest
|
||||
|
||||
$this->assertTrue($newStat["atime"] > $oldStat["atime"]);
|
||||
$this->assertTrue($newStat["mtime"] > $oldStat["mtime"]);
|
||||
|
||||
$this->driver->touch($touch);
|
||||
self::assertFileExists($touch);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user