winget-cli

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Archive.h (473B)


      1 // Copyright (c) Microsoft Corporation.
      2 // Licensed under the MIT License.
      3 #pragma once
      4 #include <filesystem>
      5 
      6 namespace AppInstaller::Archive
      7 {
      8     enum class ExtractionMethod
      9     {
     10         // Default archive extraction method is ShellApi.
     11         ShellApi,
     12         Tar,
     13     };
     14 
     15     HRESULT TryExtractArchive(const std::filesystem::path& archivePath, const std::filesystem::path& destPath);
     16 
     17     bool ScanZipFile(const std::filesystem::path& zipPath);
     18 }