Fix #1190 don't create group when getPermission()

Before this, .DS_Store were committed