chmod directory recursively but not the file

sudo find /path -type d -exec chmod 777 "{}" \;