[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: probe-file & file-write-date redundancy?
- To: info-mcl@cambridge.apple.com, weyer@apple.com
- Subject: Re: probe-file & file-write-date redundancy?
- From: jbk@world.std.com (Jeffrey B Kane)
- Date: Wed, 3 Feb 1993 11:59:19 -0500
Steve:
Sorry I sent a some code that only did half of what you want. Here is
the complete code:
(defun mac-FILE-WRITE-DATE-OR-NIL (fname)
(with-pstrs ((ps fname))
(rlet ((pb :paramblockrec
:ioCompletion (%null-ptr)
:ioVRefNum 0
:ioFVersNum 0
:ioFDirIndex 0
:ioNamePtr ps))
(if (= (#_GetFInfo pb) 0)
(progn
(rlet ((dtr :DateTimeRec
:month 0
:year 0
:day 0))
(#_Secs2Date (pref pb :paramblockrec.ioFlMdDat) dtr)
;(inspect dtr)
;(break)
(encode-universal-time (pref dtr :DateTimeRec.second)
(pref dtr :DateTimeRec.minute)
(pref dtr :DateTimeRec.hour)
(pref dtr :DateTimeRec.day)
(pref dtr :DateTimeRec.month)
(pref dtr :DateTimeRec.year))))
nil))))
(mac-probe-file "Tweety:Barry VOM")
Jeffrey
======================================
Jeffrey Kane, MD
Kane Biomedical Systems
Boston, MA
Internet jbk@world.std.com
Compuserve 74206,640
AppleLink D0738
[Don't take life too seriously... it's not like anyone gets out of it alive.]199852