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

Fix code style and ParallelDriver

This commit is contained in:
Niklas Keller 2020-10-21 21:22:06 +02:00
parent 3983198322
commit ce982fa29d
4 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ final class ParallelDriver implements Driver
public function createDirectoryRecursively(string $path, int $mode = 0777): Promise
{
return new Coroutine($this->runFileTask(new Internal\FileTask("createDirectories", [$path, $mode])));
return new Coroutine($this->runFileTask(new Internal\FileTask("createDirectoryRecursively", [$path, $mode])));
}
public function listFiles(string $path): Promise

View File

@ -137,7 +137,7 @@ final class FileTask implements Task
case "getLinkStatus":
case "exists":
case "createDirectory":
case "createDirectories":
case "createDirectoryRecursively":
case "listFiles":
case "deleteDirectory":
case "changePermissions":

View File

@ -11,7 +11,7 @@ final class StatCache
private static $cache = [];
private static $timeouts = [];
private static $ttl = 3;
private static $now = null;
private static $now;
private static function init(): void
{

View File

@ -199,7 +199,7 @@ function getModificationTime(string $path): Promise
*/
function getAccessTime(string $path): Promise
{
return filesystem()->getAccessTime($path);
return filesystem()->getAccessTime($path);
}
/**