On Fri, Sep 26, 2008 at 3:17 PM, Dmitry Kurochkin
<[EMAIL PROTECTED]> wrote:
[skip]
>>
>> Dmitry's code tells us that if we are calling ioAbsolute on a file, then
>> we must get its parent directories' ioAbsolute name.  One question: what
>> happens if the file in question is "/foo"?  Does super_name do what we
>> expect?
>
> Yes. I did not test it. But is should work fine - super_name returns
> '.' in this case.

Actually, after thinking on this a bit more, it is broken for "/foo"
paths. super_name "/foo" returns an empty string, not "." as I
expected (and even if it returned "." that would be wrong).

I will send a patch to make super_name work with "/foo" paths after
latest David's FileName patches hit the repo.

Do I understand it correctly that after 2.1.0 release we are going to
get rid of FileName module (that one that is not in Darcs/Patch)? Are
we going to use System.FilePath or smth else?

Regards,
  Dmitry
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to