On 02/09/2013 04:19 PM, Michael Van Canneyt wrote:
On Sat, 9 Feb 2013, Bart wrote:
And in this case the OP still needs to do an extra check
(try..except), so basically this does not solve his "problem" because
it is unsolvable without the programmer checking/validating what
GetAppConfigDir did.
Which is why I always write the code to check/create the dir myself.
But having the check/create in a central place can have its advantages.
The advantages I can see that it would make easier using VendorName,
and, most of all,
that once it's been written and debugged it's written and debugged for
all users, while application code must be written and debugged each time!
Giuliano
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal