title: Looping through content of the current directory
body: <p>What is the best way to look inside a directory and determine whether its content are directories or files. Its a homework question.</p>
  
  <p>My homework requires me to write a script that counts the number of directories, files, how many are executable, writeable, and readable.</p>