[fpc-devel] GetAppConfigDir confusion

Marc Weustink marc.weustink at cuperus.nl
Tue Jul 29 16:25:53 CEST 2008


Ales Katona wrote:
> It seems that currently, GetAppConfigDir performs rather incosistently.
> 
> On Unix, it returns path with trailing pathdelim, on windows it returns 
> path with random trailing path delim (depends on which branch, see code).
> 
> What should it be then?

:)

This is exactly the reason why I at work created the utility function:

   function ConcatinatePath(const Elements: array of string): String


so it will take cate if a delim exist or not for the individual parts.
(especially when users may define a dir)

Marc




More information about the fpc-devel mailing list