#| -*-Scheme-*-
-$Id: dospth.scm,v 1.29 1995/09/11 21:25:45 cph Exp $
+$Id: dospth.scm,v 1.30 1995/10/18 05:00:30 cph Exp $
Copyright (c) 1992-95 Massachusetts Institute of Technology
(or (eq? 'ABSOLUTE (car directory))
(pair? (cdr directory)))))
(error:bad-range-argument pathname 'DIRECTORY-PATHNAME-AS-FILE))
- (if (null? (cdr directory))
- (%%make-pathname (%pathname-host pathname)
- (%pathname-device pathname)
- directory
- ""
- #f
- 'UNSPECIFIC)
+ (if (or (%pathname-name pathname)
+ (%pathname-type pathname)
+ (null? (cdr directory)))
+ pathname
(call-with-values
(lambda ()
(parse-name
#| -*-Scheme-*-
-$Id: unxpth.scm,v 14.19 1995/09/11 19:07:16 cph Exp $
+$Id: unxpth.scm,v 14.20 1995/10/18 05:00:46 cph Exp $
Copyright (c) 1988-95 Massachusetts Institute of Technology
(or (eq? 'ABSOLUTE (car directory))
(pair? (cdr directory)))))
(error:bad-range-argument pathname 'DIRECTORY-PATHNAME-AS-FILE))
- (if (null? (cdr directory))
+ (if (or (%pathname-name pathname)
+ (%pathname-type pathname)
+ (null? (cdr directory)))
;; Root directory can't be represented as a file, because the
;; name field of a pathname must be a non-null string. We
;; could signal an error here, but instead we'll just return