ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 接口 ## 实例 ``` // 目录为 //Runtime // ├── Cache // ├── Cmd // │ ├── cmd-2020-07-17.txt // ├── Data // ├── Logs // └── Temp $directoryIterator = new DirectoryIterator('Runtime'); foreach ($directoryIterator as $fileInfo) { if($fileInfo->isDot()) { continue; } echo $fileInfo->getFilename() . "\n"; // Cache echo $fileInfo->getPathname() . "\n"; // Runtime\Cache echo $fileInfo->getRealPath() . "\n"; // D:\Program Files (x86)\IM Console\IM Console\im_webserver\ant_universal_10\Runtime\Cache } ```