PowerShell - Get-ChocolateyUnzip
fails to unzip when destination is root of a drive
#284
Labels
5 - Released
The area addressed in the ticket has been released in the product and is generally available.
Bug
Tickets that represent defects/bugs.
LicensedExtension
Issues affecting the Chocolatey Licensed Extension (chocolatey.extension)
Priority_HIGH
Represents high priority tickets - things that must be addressed soon.
Description
When attempting to unzip a file to the root of a drive
C:\
,Get-ChocolateyUnzip
fails with error:ERROR: The path is not of a legal form.
Steps To Reproduce
chocolateyInstall.ps1
:test.zip
file with some contentschoco pack
the packagechoco install
the packageOutput Log
Full Log Output
Workarounds
Use the drive without the ending slash:
Proposed Solution
Verify if a directory already exists before trying to create the directory.
Related Issues and Tickets
┆Issue is synchronized with this Gitlab issue by Unito
┆Milestone: 3.1.0
The text was updated successfully, but these errors were encountered: