Overview
Features
Download
Documentation
Community
Add-Ons & Services

Path : valid syntax

Please post support and help requests here.

Path : valid syntax

Postby cdelmas » 22 May 2007, 10:55

Hello all,
I have a question : is
Code: Select all

Path p("XC:::foo.bar");

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

_device=""
_dirs={"XC:::"}
_name="foo.bar"


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

Thanks in advance.

cd
cdelmas
 
Posts: 46
Joined: 22 Sep 2006, 10:04
Location: France

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.
guenter
 
Posts: 1138
Joined: 11 Jul 2006, 16:27
Location: Austria


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest