Does php scandir() exclude hidden files under Windows?
问题 On a Windows system, a backup agent created temporary hidden files of nearly the same name as the original files, and in the same path. This was probably disturbing a process that used PHP scandir() . Now I was wondering if files on Windows having the hidden flag set are excluded by PHP scandir() . There are some articles about the hidden files in Linux style, how scandir() should ignore files that start with a dot, but there is rarely no info about Windows files. 回答1: I have tried this code