A suggestion
Posted: Mon Sep 28, 2009 12:38 pm
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.
Friends and Fans of newLISP
http://www.newlispfanclub.alh.net/forum/
http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=9&t=2927
Code: Select all
> (directory? "C:\\.")
true
> (directory? "C:\.")
true
> (directory? "C:.")
true
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
>