missed link in getDirs. Fixes #519