|
@@ -5,14 +5,6 @@
|
5
|
5
|
If ARGS is provided, use (apply 'format nil PATH ARGS) as the value of PATH."
|
6
|
6
|
(merge-pathnames (apply 'format nil path args) coleslaw-conf:*basedir*))
|
7
|
7
|
|
8
|
|
-(defun to-pathname (file &optional (parent coleslaw-conf:*basedir*))
|
9
|
|
- "Convert an iolib file-path back to a pathname."
|
10
|
|
- (merge-pathnames (file-path-namestring file) parent))
|
11
|
|
-
|
12
|
|
-(defun read-symlink (path)
|
13
|
|
- "A trivial wrapper over iolib.os that returns the pathname in the symlink PATH."
|
14
|
|
- (to-pathname (iolib.os:read-symlink path)))
|
15
|
|
-
|
16
|
8
|
(defmacro do-files ((var path &optional extension) &body body)
|
17
|
9
|
"For each file on PATH, run BODY. If EXTENSION is provided, only run BODY
|
18
|
10
|
on files that match the given extension."
|