UncommonSense.Zip.Utils.tests.ps1
# . ./Private/Get-ZipByte.ps1 # Get-ZipByte Path ~/Dropbox/test.zip 0 10 # Get-ZipByte Uri 'https://www.dropbox.com/scl/fi/73eei6vciw7e73x3vzb3m/test.zip?rlkey=xket6dhbe2qd1fnfh1yc13ni9&dl=1' 0 10 $ErrorActionPreference = 'Stop' Set-StrictMode -Version Latest # Expand-FileFromZipArchive -Uri 'https://www.dropbox.com/scl/fi/73eei6vciw7e73x3vzb3m/test.zip?rlkey=xket6dhbe2qd1fnfh1yc13ni9&dl=1' -ZipEntryPath foo.txt, bar.txt -Force Expand-FileFromZipArchive -Uri 'https://bcartifacts.azureedge.net/onprem/19.4.35398.35482/de' -ZipEntryPath 'Applications\BaseApp\Source\Microsoft_Base Application.app' -Destination ~/Desktop -Force # Describe 'UncommonSense.Zip.Utils' { # Context 'From a url' { # It 'Successfully extracts a file' {} # } # Context 'From a file' { # It 'Successfully extracts a file' {} # } # } # $CentralDirectory = Get-Content -Path ~/Desktop/test.zip -AsByteStream # | Select-Object -Last 22 # | Get-ZipEndOfCentralDirectoryInfo # Get-Content -Path ~/Desktop/test.zip -AsByteStream # | Select-Object -Skip $CentralDirectory.Offset -First $CentralDirectory.Size # | Get-ZipCentralDirectoryInfo |