Skip to content

Can't extract in directory with brackets in directory name #115

@GeneralBouLi

Description

@GeneralBouLi

Prerequisites

Steps to reproduce

Execute :
Expand-Archive -Path "$ZIP_DIRECTORY$ZIP_NAME" -DestinationPath "C:$UNZIP_DIRECTORY[TEST]"

No problem with :
Expand-Archive -Path "$ZIP_DIRECTORY$ZIP_NAME" -DestinationPath "C:$UNZIP_DIRECTORY\TEST"

Expected behavior

Unzip in directory [TEST]

Actual behavior

New-Item: An item with the specified name C:\$UNZIP_DIRECTORY\[TEST] already exists.

Error details

New-Item: An item with the specified name C:\$UNZIP_DIRECTORY\[TEST] already exists.

Environment data

Win10 + Powershell 7.2

Visuals

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions