Added support for recursive update of permissions on folders