[Lazarus] CreateRelativePath document error.
Michael Van Canneyt
michael at freepascal.org
Tue Feb 9 15:28:23 CET 2010
On Tue, 9 Feb 2010, Marco van de Voort wrote:
> On Tue, Feb 09, 2010 at 03:41:38PM +0200, Paul van Helden wrote:
>>> ExpandFileName does exactly that.
>>>
>>>
>> No it doesn't, unless you're assuming your current directory as the base
>> path. ExtractRelativePath specifically takes a base path as a parameter.
>> Its inverse should do the same. In a GUI app (at least mine) I don't
>> care about my current directory.
>
> Moreover, expandfilename afaik walks the filesystem, which is not always
> good (e.g. whe you are laying out a new dir hierarchy)
It does not. In case it detects a relative path, it just asks the current
working directory. That's it. All the rest is string manipulation.
Michael.
More information about the Lazarus
mailing list