The glob(path . '/*'); function glob(path . '/*'); does not notice files that have a dot at the beginning of the name. Why?
|
1 answer
Files with a dot in the beginning are "hidden". The glob function does not handle them by default.
use this template:
$files = glob($path . '/{,.}*', GLOB_BRACE); - Theoretically, such a pattern: /
/{,.}*.phpshould find all php files? - mus - In theory, yes. Let me ask you one question, why do you need hidden
.phpscripts? I'm really curious - rjhdby - need to process them with a script, change the encoding. I work in
Bitrix, there are a lot of such files. - mus - When working with Bitrix, you can use
CFileMan::GetDirList- Dmitry
|