I'm not sure about any bug, but...

info? which dir? is based on, queries the target system for information.

For your local file system (hard disk) it is probably not much of an issue.
However if your target
happens to be FTP://..... then you can avoid a network access by using
Andrew's character based test.

Regards,
Brett.

----- Original Message -----
From: "Jason Cunliffe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, October 06, 2002 1:10 PM
Subject: [REBOL] Re: if and parens


> Joel Neely wrote:
> > Since you just want to exclude subdirectories from the list of
> > contents of the current directory, you could write
> >
> >      foreach elt read %. [if not dir? elt [print elt]]
> >
> > instead.
>
> Andrew Martin wrote:
> > And this is far more simpler:
> >     foreach File read %. [if #"/" <> last File [print File]]
>
>
> Both are nioe, but as Andrew pointed out recently, using the trailing "/"
method
> to determine directories overcomes a bug in 'dir?
>
>
> ./Jason
>
>
>
>
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to