mrmlnc / vscode-duplicate

:electric_plug: Ability to duplicate files in VS Code.
https://goo.gl/LSnrBW
MIT License
53 stars 16 forks source link

Format of path #42

Open FlorianLeitgeb opened 7 years ago

FlorianLeitgeb commented 7 years ago

How do I need to format the path, because I am getting always this message: Error: ... contains invalid WIN32 path characters.

Tried many different approaches, but nothing helped. Please give me an example.

mrmlnc commented 7 years ago

You can provide your version of path?

FlorianLeitgeb commented 7 years ago

As mentioned above, I tried many different formating variations. It was something like: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\example\js\file.js

mrmlnc commented 7 years ago

Under the hood we use fs-extra for work with File System. This package throw this error by invalidWin32Path.

Most likely it's a bug of fs-extra package but I have no Windows. You can write JS file for test your path and create Issue in their repository.