Directory listing permissions
refactor and fix
Merge pull request #334 from darbula/feature/directory-listing-permissions

Directory listing permissions