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





