每隔 x 秒读取一个目录使用 php 的 scandir() 函数。