Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.ArgumentException - Illegal Characters in path #5

Open
TedDawkin opened this issue Mar 20, 2017 · 1 comment
Open

System.ArgumentException - Illegal Characters in path #5

TedDawkin opened this issue Mar 20, 2017 · 1 comment

Comments

@TedDawkin
Copy link

TedDawkin commented Mar 20, 2017

In ScarletWinTest MainForm

Method: public List GetFormatInfos(Type baseFormatType)

extension = Path.GetExtension(pattern).Replace("$", "");

Path.GetExtension(pattern)
throws System.ArgumentException - - Illegal Character in path

if
string pattern = (fnPatternAttrib as FilenamePatternAttribute).Pattern = ^.*.(btga|lga)$

because it it about the Pipe-Symbol "|"

Temporary fix for me of your course was to set
string pattern = "^.*$";

@xdanieldzd
Copy link
Owner

The UI-based converter (i.e. ScarletWinTest) hasn't seen much work up to now and is rather hacky and incomplete. I even had a hunch that something like this might become an issue eventually, hence my comment file extension extraction from regex is iffy in the GetFormatInfos function's code.

I'll see about fixing this issue, as well as improving the GUI converter in general. In the meantime, please use the command line-based converter if you need to convert any files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants