X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=downloads.cl;fp=downloads.cl;h=bba97ca71f3e3f06c80ef587568a4df8c635565b;hb=0cd5f00df6e8c3c0ee57fa7b2eba016161b0202f;hp=3889dea3f654924ecda8a84e81b6bfeb5c6ad2ba;hpb=0475d04df69231c0571450957355564089e291ed;p=lml.git diff --git a/downloads.cl b/downloads.cl index 3889dea..bba97ca 100644 --- a/downloads.cl +++ b/downloads.cl @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Aug 2002 ;;;; -;;;; $Id: downloads.cl,v 1.1 2002/09/16 01:13:49 kevin Exp $ +;;;; $Id: downloads.cl,v 1.2 2002/09/16 03:09:00 kevin Exp $ ;;;; ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -43,7 +43,7 @@ (subseq (length bdir) (length fdir) fdir)))))) (defun print-file (file) - (let ((size (round (/ (file-length file) 1024))) + (let ((size 0) (modtime (date-string (file-write-date file))) (basename (namestring (make-pathname :name (pathname-name file) @@ -54,6 +54,8 @@ :type (concatenate 'string (pathname-type file) ".asc")))) + (with-open-file (strm file :direction :input) + (setq size (round (/ (file-length strm) 1024)))) (lml-print "~A" *ftp-url* ftp-name basename) (lml-print "") (lml-print " (~A, ~:D KB)" modtime size)