def number_of_sub_file_entries(self):
    """int: number of sub file entries."""
    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)
def number_of_sub_file_entries ( self ) : if self . _directory is None : self . _directory = self . _GetDirectory ( ) if self . _directory is None : return 0 return sum ( 1 for path_spec in self . _directory . entries )
int: number of sub file entries.