Mac chmod for subdirectories

find “directory name” -type d | xargs chmod 777