How to check a path is a file or folder in PHP

后端 未结 4 1090
一个人的身影
一个人的身影 2020-12-07 03:34

I use scandir() to search files recursively. But if the file path directs to a file not a folder, there will be a warning. How can I check the path whether it directs a file

4条回答
提交回复
热议问题