How to chmod 777 All directories named 'e'?

Clash Royale CLAN TAG#URR8PPPHow to chmod 777 All directories named 'e'?
My Website will contain thousands of sub directories named 'e', a php script within the primary directory's php file creates this directory if it does not yet exist on form submission. I need this newly created directory to be chmod 777. How can I do this? Can I set this with the php called by the form or can i tell apache to default any directory named e to be chmodded to 777 automatically? ...or?
Possible duplicate of File Permissions and CHMOD: How to set 777 in PHP upon file creation?
– Camilo Silva
6 mins ago
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
If you are using PHP, why don't you tag this with php? (always tag the question with the language name, if possible.)
– user202729
13 mins ago