Skip to content

Instantly share code, notes, and snippets.

@lgaff
Created July 24, 2012 01:21
Show Gist options
  • Save lgaff/3167329 to your computer and use it in GitHub Desktop.
Save lgaff/3167329 to your computer and use it in GitHub Desktop.
subdirectory creation using a double-dereference
(defmacro create-subdir (path subdir)
`(ensure-directories-exist
(merge-pathnames (make-pathname :directory `(:relative ,,subdir) :name "ignored") ,path))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment