瀏覽代碼

Make WRITE-PAGE overwrite existing pages by default.

Brit Butler 12 年之前
父節點
當前提交
930e8bb04d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/coleslaw.lisp

+ 1 - 0
src/coleslaw.lisp

@@ -36,6 +36,7 @@ Additional args to render CONTENT can be passed via RENDER-ARGS."
36 36
   (ensure-directories-exist filepath)
37 37
   (with-open-file (out filepath
38 38
                    :direction :output
39
+                   :if-exists :overwrite
39 40
                    :if-does-not-exist :create)
40 41
     (write-line page out)))
41 42