PHP: glob - Manual
www.php.net › manual › enfunction glob_recursive ($directory, & $directories = array()) { foreach(glob ($directory, GLOB_ONLYDIR | GLOB_NOSORT) as $folder) { $directories [] = $folder; glob_recursive (" {$folder} /*", $directories); } } glob_recursive ($directory, $directories); $files = array (); foreach($directories as $directory) { foreach($extensions as $extension)
glob - Using CMake GLOB_RECURSE to find directories - Stack ...
stackoverflow.com › questions › 62045438"The globbing pattern used with GLOB_RECURSE appears to match any directory after the asterisk (*) in the pattern, and will not filter further for the include directory" - It seems that CMake simply drops the last path component of the globbing expression when search directories, whenever it contains asterisk or not. E.g., this globbing expression ${CMAKE_SOURCE_DIR}/deps/NonExistentFile will "match" to all directories under ${CMAKE_SOURCE_DIR}/deps/ but to none files. A funny behavior indeed.
[CMake] GLOB_RECURSE
cmake.org › pipermail › cmakeJul 26, 2018 · If you look at the signature of the function you're calling ``` file (GLOB_RECURSE <variable> [FOLLOW_SYMLINKS] [LIST_DIRECTORIES true|false] [RELATIVE <path>] [<globbing-expressions>...]) ``` you can see that all your arguments after `ards` and `apps` are being treated as `<globbing-expressions>`.