[fpc-devel] GetAppConfigDir confusion

Michael Van Canneyt michael at freepascal.org
Wed Jul 30 13:50:32 CEST 2008



On Wed, 30 Jul 2008, Inoussa OUEDRAOGO wrote:

> >> So.. questions are:
> >> 1. trailing pathdelims, yes or no? (of course only if there's something to
> >> return)
> >
> > What is the most logical according to you ?
> 
> For consistency purpose ( think of ExtractFileDir and ExtractFilePath
> ), why not define
>  * GetAppConfigDir : without pathdelim
>  * GetAppConfigPath : with pathdelim

I don't want to burden the API too much; ExtractFileDir is an old left over
from DOS days; The logical thing there is to use is ExtractFilePath - which 
has the path delimiter, which is why I think that a trailing path delimiter
should be used.

Michael.



More information about the fpc-devel mailing list