Use given listDirectory function
Merge pull request #101 from Stuk/list-directories

Use given listDirectory function