getDirectories try & error script