A suggestion
A suggestion
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:
Code: Select all
> (directory? "C:\\.")
true
> (directory? "C:\.")
true
> (directory? "C:.")
true
Hans-Peter
For me on Win XP with NewLISP 10.1.5 :
and :newLISP v.10.1.5 on Win32 IPv4, execute 'newlisp -h' for more info.
> (directory? "c:\")
ERR: string token too long : "c:\")\r\n"
> (directory? "c:\\")
nil
> (directory? {c:\})
nil
> (directory? {c:\\})
true
>
> (directory? "c:/")
nil
> (directory? "\")
ERR: string token too long : "\")\r\n"
> (directory? "\\")
nil
> (directory? "\\.")
true
> (directory? "/.")
true
>
Bertrand − newLISP v.10.7.6 64-bit on Linux (Linux Mint 20.1)