Itβs better to answer right now: use (uiop:chdir "some/path")
.
Or you can use this function to temporarily change the directory:
(uiop:call-with-current-directory "some/path" (lambda () (do-the-job))
Or this macro for a more convenient way:
(uiop:with-current-directory ("some/path") (do-the-job))
source share