I just noticed that when I do (directory? "c:"), I got nil. Should it return true instead? The drive can be considered as the "root" directory on that drive.
How about:
> (directory? "C:\.")
true
> (directory? "C:.")
true
> (directory? "C:.")
true
what newlisp version are you using ?
because I get true out of this ->
>(directory? {c:})
true
the "c:" gives an error..
I am using 10.1.5.
(directory? "c:\") => nil
(directory? "c:\\") =>true
For me on Win XP with NewLISP 10.1.5 :
Quote
newLISP v.10.1.5 on Win32 IPv4, execute 'newlisp -h' for more info.
> (directory? "c:")
ERR: string token too long : "c:")rn"
> (directory? "c:\")
nil
> (directory? {c:})
nil
> (directory? {c:\})
true
>
and :
Quote
> (directory? "c:/")
nil
> (directory? "")
ERR: string token too long : "")rn"
> (directory? "\")
nil
> (directory? "\.")
true
> (directory? "/.")
true
>