Skip to content

Fail to copy for filename containing square brackets '[ ]' #12

Description

@cho-uc

Copying files with filename containing squarebracket "[ ]" will fail

Example:

  • Myfilename[123].txt -> fail, file is corrupted, but no error message
  • Myfailname].txt -> success
  • Myfailname[.txt -> fail with attached error message

Windows version : Windows 10 Version 22H2
PSVersion : 5.1.19041.5007

Command:
Copy-FileHash -Path .\Source\ -Destination .\Destination\ -Recurse -PassThru -Verbose

Error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions