| Newsgroups |
gmane.lisp.corman |
| Message-ID |
<[email protected]> |
--- In [email protected], "SmallHairyTroll <lcluke@w...>"
<lcluke@w...> wrote:
> I am trying to pass a filename and directoryname string to the
> function (make-pathname) like so...
>
> (setf path (make-pathname
> :device "C"
> :directory '("\\test_directory")
> :name "test_file.txt"))
>
> ... ccl returns ...
>
> #P"C:test_file.txt"
>
> ... what happened to the directoryname ? I'm doing something wrong
> but what?
>
OK... this works
(setf path (make-pathname
:device "C"
:directory '(truename "\\test_directory")
:name "test_file.txt"))
#P"C:\test_directory\test_file.txt"
... However why does :name accept the
value "C:\\test_directory\\test_file.txt" while the value passed
to :directory must be a valid pathname object ?
I know I am passing an incorrect value to :directory as
(truename "\\test_directory") returns ...
#P"c:\test_directory"
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/FpY02D/vN2EAA/xGHJAA/SyjtlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/