Adding the possibility to recursively set permissions