[Yanel-dev] directory resource on win

Andreas Wuest awuest at student.ethz.ch
Mon Feb 12 14:52:31 CET 2007


Hi

On 12.2.2007 14:47 Uhr, Michael Wechner wrote:
> 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 ;-)

I did not look at the code, so I did not know in which context the path 
is used.


-- 
Kind regards,
Andi



More information about the Yanel-development mailing list