code: def number_of_sub_file_entries(self):
      
      if self._directory is None:
        self._directory = self._GetDirectory()
  
      if self._directory is None:
        return 0
  
      # We cannot use len(self._directory.entries) since entries is a generator.
      return sum(1 for path_spec in self._directory.entries)
docs: int: number of sub file entries.