code: def is_directory (self):
          
          filename = self.get_os_filename()
          return os.path.isdir(filename) and not os.path.islink(filename)
docs: Check if file is a directory.
  
          @return: True iff file is a directory
          @rtype: bool