Path : valid syntax

Please post support and help requests here.
Posts: 46
Joined: 22 Sep 2006, 10:04
Location: France

Path : valid syntax

Postby cdelmas » 22 May 2007, 10:55

Hello all,
I have a question : is

Code: Select all

Path p("");

a Windows-valid path ? According to me, it is clear that the answer is no, and I expect the API to throw a PathSyntaxException. Indeed, there is a set of forbidden characters that we can't use in both directory and file names ; this set is __" < > | / ? : *__. In fact, Poco doesn't throw the "expected" exception, and the resulting path is :

Code: Select all


So my question is : why does this code is valid, and how can I test the validity of a path ?

Thanks in advance.


Posts: 1266
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: Path : valid syntax

Postby guenter » 27 May 2007, 10:16

Path currently does not test for invalid characters in a path.Probably a good feature for an upcoming release, though.

Return to “Support”

Who is online

Users browsing this forum: No registered users and 4 guests