我和scandir()有点问题。我正在尝试在我的云中的子域下的页面上显示我的snaps-directory中的文件。$files = scandir('.Warning: scandir(./snaps) [function.scandir]: failed to open dir: No such file or directory in /home/u703778423/public_html/cloud/index.php
我正在尝试使用Lua使用scandir函数来扫描根目录。如果我将下面的代码用于任何其他目录,它就能很好地工作。它扫描目录并返回存在的所有文件。directory="//home//" local i, t, popen = 0, {}, io.popen end return t--t contains all