Lisp HUG Maillist Archive

Still confused about pathname

Thanks Edi!

(make-pathname :host "C" :directory "Windows")
> #P"C:/Windows/"

Still that seems wrong..
The host is localhost. Also I would get in trouble using :host with ACL:

(let ((dir (get-working-directory)))
   (defparameter *app-help-directory*
     (make-pathname
      :host (pathname-host dir)
      :device (pathname-device dir)
      :directory (pathname-directory dir))))

is my best bet I guess. That works.
(I still need to replace get-working-directory)

If C is host what is device for then?
Is there a more reliable way of getting user data home directory portably?

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


Re: Still confused about pathname

Hi John,

On Dec 4, 2006, at 5:31 PM, John Thingstad wrote:

> The host is localhost. Also I would get in trouble using :host with  
> ACL:

"host" isn't a web host. It's a logical pathname host thing. (cf.  
http://www.lispworks.com/documentation/HyperSpec/Body/f_mk_pn.htm)


--
Gary Warren King, metabang.com
Cell: (413) 885 9127
Fax: (206) 338-4052
gwkkwg on Skype * garethsan on AIM





Re: Still confused about pathname

On Mon, 04 Dec 2006 23:31:46 +0100, "John Thingstad" <john.thingstad@chello.no> wrote:

> (make-pathname :host "C" :directory "Windows")
>> #P"C:/Windows/"
>
> Still that seems wrong..

See for example here:

  http://groups.google.com/group/comp.lang.lisp/msg/cb7464ec6a4185e6

I'm sure you'll find more discussions of this topic on c.l.l.


Updated at: 2020-12-10 08:47 UTC