{"msg":"FilesystemIterator::__construct(\/www\/wwwroot\/photograph.wshendu.com\/runtime\/session\/): Failed to open directory: No such file or directory","code":0,"data":[],"debug":{"name":"UnexpectedValueException","file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/session\/driver\/File.php","line":96,"code":0,"msg":"FilesystemIterator::__construct(\/www\/wwwroot\/photograph.wshendu.com\/runtime\/session\/): Failed to open directory: No such file or directory","trace":[{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/session\/driver\/File.php","line":96,"function":"__construct","class":"FilesystemIterator","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/session\/driver\/File.php","line":83,"function":"findFiles","class":"think\\session\\driver\\File","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/session\/driver\/File.php","line":65,"function":"gc","class":"think\\session\\driver\\File","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/session\/driver\/File.php","line":47,"function":"init","class":"think\\session\\driver\\File","type":"->"},{"function":"__construct","class":"think\\session\\driver\\File","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Container.php","line":396,"function":"newInstanceArgs","class":"ReflectionClass","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Manager.php","line":135,"function":"invokeClass","class":"think\\Container","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Session.php","line":29,"function":"createDriver","class":"think\\Manager","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Manager.php","line":62,"function":"createDriver","class":"think\\Session","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Manager.php","line":52,"function":"getDriver","class":"think\\Manager","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Manager.php","line":171,"function":"driver","class":"think\\Manager","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/middleware\/SessionInit.php","line":41,"function":"__call","class":"think\\Manager","type":"->"},{"function":"handle","class":"think\\middleware\\SessionInit","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":134,"function":"call_user_func"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/think-trace\/src\/TraceDebug.php","line":71,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"function":"handle","class":"think\\trace\\TraceDebug","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Middleware.php","line":134,"function":"call_user_func"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":85,"function":"think\\{closure}","class":"think\\Middleware","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Pipeline.php","line":66,"function":"think\\{closure}","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":197,"function":"then","class":"think\\Pipeline","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/vendor\/topthink\/framework\/src\/think\/Http.php","line":162,"function":"runWithRequest","class":"think\\Http","type":"->"},{"file":"\/www\/wwwroot\/photograph.wshendu.com\/public\/index.php","line":21,"function":"run","class":"think\\Http","type":"->"}],"source":{"first":87,"source":["\n","    \/**\n","     * 查找文件\n","     * @param string  $root\n","     * @param Closure $filter\n","     * @return Generator\n","     *\/\n","    protected function findFiles(string $root, Closure $filter)\n","    {\n","        $items = new FilesystemIterator($root);\n","\n","        \/** @var SplFileInfo $item *\/\n","        foreach ($items as $item) {\n","            if ($item->isDir() && !$item->isLink()) {\n","                yield from $this->findFiles($item->getPathname(), $filter);\n","            } else {\n","                if ($filter($item)) {\n","                    yield $item;\n","                }\n"]}}}