The next line (with the `.directory?` check) is unnecessary if your glob is `"Library/Taps/*/"` (note the trailing slash) instead of `"Library/Taps/*"` as it will only match directories.