kfdm/alfred — comment on commit bdd87d564a73a7dc1a7fbe6fd4238f5cc457d288
File: extensions/scripts/Extension+Updater/script.php line 75
By kfdm:

By using glob, we can do some moderately fancy bits of file manipulation to find all extension directories.

For example using an example in the shell

$ ls -l ../../*/*/update.xml
-rw-r--r-- 1 kfdm staff 144B Feb 12 17:49 ../../applescripts/Extension one/update.xml
-rw-r--r-- 1 kfdm staff 150B Feb 12 17:49 ../../applescripts/Extension two/update.xml
-rw-r--r-- 1 kfdm staff 141B Feb 12 17:49 ../../scripts/Extension three/update.xml
-rw-r--r-- 1 kfdm staff 142B Feb 12 17:49 ../../scripts/Extension four/update.xml

Looping through again, we can get the real directory for each and put them into an array to loop through later.