code: def find_directories(root,fullpath=True):
      '''
      Return directories at one level specified by user
      (not recursive)
      '''
      directories = []
      for item in os.listdir(root):
          # Don't include hidden directories
          if not re.match("^[.]",item):
              if os.path.isdir(os.path.join(root, item)):
                  if fullpath:
                      directories.append(os.path.abspath(os.path.join(root, item)))
                  else:
                      directories.append(item)
      return directorief find_directories(root,fullpath=True):
      '''
      Return directories at one level specified by user
      (not recursive)
      '''
      directories = []
      for item in os.listdir(root):
          # Don't include hidden directories
          if not re.match("^[.]",item):
              if os.path.isdir(os.path.join(root, item)):
                  if fullpath:
                      directories.append(os.path.abspath(os.path.join(root, item)))
                  else:
                      directories.append(item)
      return directories
docs: Return directories at one level specified by user
      (not recursive)