Changeset 121


Ignore:
Timestamp:
Dec 13, 2003, 1:51:54 PM (21 years ago)
Author:
Gary Byers
Message:

DIRECTORYP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/lib/pathnames.lisp

    r6 r121  
    133133                 source-path dest-path (%strerror exit-code)))
    134134        (values new-name original (truename new-name))))))
     135
     136
     137;;; It's not clear that we can support anything stronger than
     138;;; "advisory" ("you pretend the file's locked & I will too") file
     139;;; locking under Darwin.
    135140
    136141
     
    239244;is a dir. - should we doc this - its exported?
    240245(defun directoryp (path)
    241   ;; This should be pretty easy.
    242   (break "Directoryp ? ~s" path))
     246  (let* ((native (native-translated-namestring path))
     247         (realpath (%realpath native)))
     248    (if realpath (eq (%unix-file-kind realpath) :directory))))
     249         
    243250
    244251;-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Note: See TracChangeset for help on using the changeset viewer.