[Lazarus] CreateRelativePath document error.

Juha Manninen juha.manninen at phnet.fi
Tue Feb 9 22:05:31 CET 2010


Mattias Gärtner wrote:
>> Now, damn, it seems that FileUtil.CreateRelativePath works correctly, too.

> :)It is used at a lot of places in the IDE.

Yes, I don't know what happened. Now all those functions seem to work 
correctly.

> The ideprocs version is a simple alias. I will delete it.
> The codetools and lcl are separate and independent things (by license  
> and by directory).

The ideprocs version is an alias to function in codetools/fileprocs which is 
ALMOST  identical with the LCL fileutils version.
I would myself get rid of duplicate code.
Code reuse is GOOD and duplicated code is BAD.

License difference?
Other is "modified LGPL" and other is "GNU General Public License".
They are both free and open source. No big deal...
:-)

> ExtractRelativePath works case insensitive, even under Linux.
> CreateRelativePath expects trimmed filenames. That means no double  
> slashes '//'. I will change it, so that it also works with untrimmed  
> filenames.

Ok.
There are so many file and file name manipulations functions in different 
places (RTL, LCL, codetools). I hope they will be unified in future.


Regards,
Juha




More information about the Lazarus mailing list