Skip to content

"normalize" messes up the command line arguments #39

@simdyn

Description

@simdyn

in https://github.com/TheTechsTech/node-7z-archive/blob/master/src/utility.ts#L85 and https://github.com/TheTechsTech/node-7z-archive/blob/master/src/utility.ts#L96 the code is calling normalize(arg).

This turns a normal path (on windows) from c:\whatever to .\c:\whatever and for the -o parameter it does the same: -oC:\whatever turns into .\-oC:\whatever.

This leads then to Encountered an error: Error: The filename, directory name, or volume label syntax is incorrect.
I have removed the normalize locally and everything works again.

I did not change anything in my project (just came back to change something unrelated and haven't touched the project for over a year) and this is now an issue, so I am suspecting that it might have to do with a node version update(i am using 24.10.0 now)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions