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

Use given listDirectory function (v2)