remove only files

svn: r10785
This commit is contained in:
Eli Barzilay 2008-07-16 00:22:05 +00:00
parent 7de06dbbb3
commit 3bd1e3615c

View File

@ -552,11 +552,14 @@
(when in-delta? (set-info-need-in-write?! info #t))
(unless latex-dest
(let ([dir (doc-dest-dir doc)])
(unless (directory-exists? dir) (make-directory dir))
(for ([f (directory-list dir)]
#:when (not (regexp-match? #"[.]sxref$"
(path-element->bytes f))))
(delete-file (build-path dir f)))))
(if (not (directory-exists? dir))
(make-directory dir)
(for ([f (directory-list dir)]
#:when
(and (file-exists? f)
(not (regexp-match? #"[.]sxref$"
(path-element->bytes f)))))
(delete-file (build-path dir f))))))
(render-time
"render"
(with-record-error