I have some files in a directory - some are uploaded via ftp and some other are created by a php script.
Scandir just finds the uploaded files, but none of the created files. I can't run chown() because the server is part of shared hosting.
I can't find anything about this behaviour in the documentation.