Hi,

you wrote:
> > There is also others problems with the original split-path:
> > >> split-path http://www.rebol.com
> > == [http:// %www.rebol.com]
> > >> split-path http://www.rebol.com/
> > == [http:// %www.rebol.com/]
> >
> > I would prefer to get
> > == [http://www.rebol.com/ none]
> > in both cases, as in the following:
> > >> split-path %/
> > == [%/ none]
>

the problem is, that your wish cannot be fulfilled, as long, as
you allow all arguments of the type File!, because for File!
values referring to non-existing files, there is no way how to
find out, if:

http://www.nonsense.com/something is a directory. OTOH, the
split-path is (IMHO) meant to work without checking for the
existence of the target, because it should work even for the files
that are not created by that time.

As an additional observation, the Core Dir? is not working
correctly for HTTP URL's. (the reason is similar as for Exists?),
see my solution in that case.

Regards,
    Ladislav

Reply via email to