Function dai::utility::extractFiles

Function Documentation

void dai::utility::extractFiles(const std::filesystem::path &archivePath, const std::vector<std::string> &filesInArchive, const std::vector<std::filesystem::path> &filesOnDisk)

Extracts files from an archive, supports both compressed (e.g. tar.gz) and uncompressed (e.g. tar) archives.

Parameters:
  • archivePath – Path to the archive file to extract from

  • filesInArchive – Vector of paths for the files within the archive to extract

  • filesOnDisk – Vector of paths where the extracted files should be written