Skip to content

Commit

Permalink
Add ensure-directories-exist
Browse files Browse the repository at this point in the history
  • Loading branch information
yitzchak committed Oct 15, 2024
1 parent cbfa80d commit f59c845
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kernel.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,7 @@
(:documentation "Save the code to the provided source-path.")
(:method (kernel code source-path)
(declare (ignore kernel))
(ensure-directories-exist source-path)
(with-open-file (stream source-path :direction :output :if-exists :supersede)
(write-string code stream))))

Expand Down

0 comments on commit f59c845

Please sign in to comment.