def _GetDirectory(self):
    if self._stat_object is None:
      self._stat_object = self._GetStat()

    if (self._stat_object and
        self._stat_object.type == self._stat_object.TYPE_DIRECTORY):
      return CPIODirectory(self._file_system, self.path_spec)
    return
Retrieves a directory.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/cpio_file_entry.py/CPIOFileEntry._GetDirectory