On 12/09/12 19:51, Krzysztof wrote:
Hi,
Exists any multiplatform function which check if string contains not
allowed characters (like< > / \ on windows) for filename?
Regards
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
No! File name & path validity are platform specific.
Jurgen's idea of attempting to create a temporary file with the given
name, probably best solution.
Also it will check write access to the path, which is useful too. And it
is future proof.
Need to run the check on the target of course.
Regards,
PB
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal