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:
parent
3983198322
commit
ce982fa29d
@ -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
|
||||
|
@ -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":
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -199,7 +199,7 @@ function getModificationTime(string $path): Promise
|
||||
*/
|
||||
function getAccessTime(string $path): Promise
|
||||
{
|
||||
return filesystem()->getAccessTime($path);
|
||||
return filesystem()->getAccessTime($path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user