extract_archive

class dgl.data.utils.extract_archive(file, target_dir, overwrite=False)[source]

Extract archive file.

Parameters
  • file (str) – Absolute path of the archive file.

  • target_dir (str) – Target directory of the archive to be uncompressed.

  • overwrite (bool, default True) – Whether to overwrite the contents inside the directory. By default always overwrites.