to check if a %filename is a directory use

>> dir? %mails
== true
>> dir? %mails/
== true
>> dir? %nox ;non-existent
== false
>> dir? %nox/
== false

what is blablabla? it has to end with "/", then it works. 
there is
>> dirize %filename
== %filename/
to help.

volker

[EMAIL PROTECTED] wrote on 6-Sep-2000/17:06:55-5:00

> I am writing some code which takes user input in a form and then checks to 
> see if the user input is a directory name or not.
> 
> Now on Win98 in Rebol console, it works fine.
> Each directory is %directory/
> 
> yet in linux I can't make it work
> 
> filename: %filename
> directory: read blahblahblah ;read the directory into a block
> found: find directory filename
> 
> that doesn't work
> 
> always comes up with "none"
> 
> help me please
> 
> thanks,
> 
> 
> Jeff Rubin, CTO & Co-Founder
> Audiopia
> Shutup and Listen...
> http://www.audiopia.com
> also check out my personal site Brainbyte!
> http://www.brainbyte.com
> 
> 
> 

Reply via email to