diff --git a/src/Driver/ParallelDriver.php b/src/Driver/ParallelDriver.php index 02b3225..227d6b4 100644 --- a/src/Driver/ParallelDriver.php +++ b/src/Driver/ParallelDriver.php @@ -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 diff --git a/src/Internal/FileTask.php b/src/Internal/FileTask.php index e4b5598..bfa9e4f 100644 --- a/src/Internal/FileTask.php +++ b/src/Internal/FileTask.php @@ -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": diff --git a/src/StatCache.php b/src/StatCache.php index 4760729..95f11fb 100644 --- a/src/StatCache.php +++ b/src/StatCache.php @@ -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 { diff --git a/src/functions.php b/src/functions.php index 02611af..888bf1d 100644 --- a/src/functions.php +++ b/src/functions.php @@ -199,7 +199,7 @@ function getModificationTime(string $path): Promise */ function getAccessTime(string $path): Promise { - return filesystem()->getAccessTime($path); + return filesystem()->getAccessTime($path); } /**