How to “chmod” directory and/or file only

Just do as followings. Login root or as correct owner for the folder:
# cd (to your /path/directory)
# find -type d -print0 |xargs -0 chmod 755
# find -type f -print0 |xargs -0 chmod 644