code: def _GetDirectory(self):
      
      if self.entry_type != definitions.FILE_ENTRY_TYPE_DIRECTORY:
        return None
      return ZipDirectory(self._file_system, self.path_spec)
docs: Retrieves a directory.
  
      Returns:
        ZipDirectory: a directory or None if not available.