home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.lisp
- Path: sparky!uunet!mcsun!sunic!aun.uninett.no!nuug!hake.ifi.uio.no!ifi.uio.no!si.no!fenrix.si.no!haltraet
- From: haltraet@monsun.si.no (Hallvard Tr{tteberg)
- Subject: changing the pathname type
- Sender: usenet@si.no (News Poster)
- Message-ID: <HALTRAET.92Sep14091247@monsun.si.no>
- Date: Mon, 14 Sep 1992 08:12:47 GMT
- Nntp-Posting-Host: monsun.si.no
- Organization: Center for Industrial Research, Dept. of Knowledge Based Systems
- Lines: 25
-
- Hi Lispers,
-
- I have a quite trivial problem, which I cannot find the information to
- solve.
-
- I would like to change the filetype of a pathname (e.g. to nil
- (unspecified) or .lisp). There is no (setf pathname-type) in my lisp,
- nor is it mentioned in CLtL, although pathname-type is called an
- accessor. I cannot use (merge-pathnames <filename> ".lisp") since this
- will only "change" the pathname-type if it is nil (unspecified). I
- cannot merge the other way, i.e. (merge-pathnames ".lisp" <filename>)
- since I would like to use nil (unspecified) instead of ".lisp". I want
- to avoid doing string-search since it would likely be non-portable.
-
- Regards, Hallvard
- --
- Hallvard Traetteberg
- Dept. of Knowledge Based Systems
- Center for Industrial Research
- Box 124 Blindern, 0314 Oslo 3
- NORWAY
-
- Tlf: +47 2 45 29 83 or +47 2 45 20 10
- Fax: +47 2 45 20 40
- Email: Hallvard.Tretteberg@si.no
-