getDirectoryContents excludes .git files and the folder