[Lazarus] GetAllFilesMask / AllFilesMask

Jürgen Hestermann juergen.hestermann at gmx.de
Sun Apr 28 16:19:49 CEST 2013


Am 2013-04-28 14:23, schrieb Bart:
 > But you must consider the end user. If on Windows someone types *.* in my program, he expects to find all files, but on Linux, the user will expect to find only files that have a dot in it's name somewhere.

If you just want to pass through the mask to the underlying OS then you don't need to worry about it. Just let the OS API do it. Someone on Linux will get what he expects on Linux and a Windows user will get what he expects on Windows (so nothing predictable ;-)). But if you want a user of your program to get the same results for both versions you need to unify them. It depends on the expectations.





More information about the Lazarus mailing list