[Yanel-dev] directory resource on win

Michael Wechner michael.wechner at wyona.com
Mon Feb 12 14:47:49 CET 2007


Andreas Wuest wrote:

> Hi
>
> On 12.2.2007 10:47 Uhr, simon litwan wrote:
>
>> hi all
>>
>> the directory resource-type has a problem. there is one slash to much 
>> if i run yanel on win.
>>
>> i'm not entirely sure but i think the problem is in
>>
>> DefaultMapImpl.java of yarep.
>> on line 101 methode getChildren(Path path)
>>
>> if (path.toString().endsWith(File.separator)) {
>>
>> i think there should be a "/" instead of File.separator.
>
>
> Hmm, isn't the idea of File.separator to return a platform-specific 
> file separator?


yes, but Yarep paths have nothing to do with the filesystem ;-)

Cheers

Michi


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner at wyona.com                        michi at apache.org
+41 44 272 91 61




More information about the Yanel-development mailing list