<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 12/09/12 19:51, Krzysztof wrote:
<blockquote
cite="mid:CACLODVCFuJEmWser8ZxPPe80R_4HbmwsFaYze8XXeFNjH45JrQ@mail.gmail.com"
type="cite">
<pre wrap="">Hi,
Exists any multiplatform function which check if string contains not
allowed characters (like < > / \ on windows) for filename?
Regards
_______________________________________________
fpc-pascal maillist - <a class="moz-txt-link-abbreviated" href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/mailman/listinfo/fpc-pascal">http://lists.freepascal.org/mailman/listinfo/fpc-pascal</a>
</pre>
</blockquote>
<font size="-1"><br>
No! File name & path validity are platform specific.<br>
<br>
Jurgen's idea of attempting to create a temporary file with the
given name, probably best solution. <br>
Also it will check write access to the path, which is useful too.
And it is future proof. <br>
Need to run the check on the target of course.<br>
<br>
Regards,<br>
PB<br>
</font>
</body>
</html>