Elan:
Thanks for your clarification. I think you meant to say "directory or a
file." at the end?
Also, from User's Guide, it appears 'path is broader than your definition
(which considers only the block as a root). A path could be of type file! as
in "src/unix/main.c", to cite Chapter 4
or in my system:
>> p: what-dir
== %/D/Rebol2Stuff/
>> type? p
== file!
>> path? p
== false
>> file? p
== true
>> dir? p
== true
>>
I see now how the argument 'path can be of type file!
If a file name ends with "/" it denotes a directory, but is of both type
dir! and type file!.
Pretty cool!
So far I've not been able to create an entity with a value that is of type =
path.
i.e.
>> path? xxxxxx
== false
What would xxxxx be to obtain a true result?
>>
Russell, [EMAIL PROTECTED]
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, October 09, 1999 9:52 PM
Subject: [REBOL] how could a word not have a value? I just loaded the
$#@!@$!%*%^$ file! Re:(2)
> Ho Russell,
> you wrote:
> >But the script bothers me; the argument for 'recursive-files, 'path,
is
> >required to be of type file! (not path!)??
>
> Path!: a succession of words, separated by forward slashes, that accesses
> items in a block:
>
> >> block: [a [ b "c" ] ]
> == [a [b "c"]]
> >> block/a/b
> == "c"
>
> File!: Any legal filesystem path that evaluates to a directory of a file.
>
> Elan
>
>
>