0

在两个小时内,我试图为我的问题找到一个问题。我有一个对System32文件夹进行排序的脚本:

$iterator = new DirectoryIterator($_SERVER["SystemRoot"] ."\System32");
foreach ($iterator as $fileinfo) {
    if ($fileinfo->isDir())
        echo $fileinfo->getFilename() . "<br />";
}

但是当我检查结果时,我看到一些文件夹丢失了。

http://img15.hostingpics.net/pics/46385214pb.jpg

有人有解决它的想法吗?非常感谢。

编辑:当我创建一个新文件夹时,它也找不到。

编辑':我在 Windows Server 2012 R2 (IIS 8.5) 上工作。

4

0 回答 0