Skip to content

Commit

Permalink
-Added file-size to utility.lisp
Browse files Browse the repository at this point in the history
  • Loading branch information
ingram committed Mar 5, 2011
1 parent fdf6f43 commit 5b864d3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utility.lisp
Expand Up @@ -19,4 +19,7 @@
(if (not a-list)
acc
(let ((e (car a-list)))
(list->plist (cdr a-list) (append acc `(,(sym->keyword e) ,e))))))
(list->plist (cdr a-list) (append acc `(,(sym->keyword e) ,e))))))

(defun file-size (f-name)
(with-open-file (stream f-name :direction :input :if-does-not-exist nil) (file-length stream)))

0 comments on commit 5b864d3

Please sign in to comment.