support for nested directories with unique permissions.txt files