Utilities for Manipulating Directories (original) (raw)
8.15
This package provides forms for managing what directory code is run in. It is particularly useful for unit testing.
(in-this-directory body-form ...+)
An expression form that evaluates each body-form with the current-directory parameterized to the directory containing the module in which the expression appears.
(in-new-directory dir-expr body-form ...+)
An expression form that creates the directory dir-expr and evaluates each body-formwith the current-directory parameterized to the new directory. Ifkeep-new-directories? is #f, the new directory is completely erased, including all of its contents, after evaluation terminates.
keep-new-directories? : (parameter/c boolean?)
Should in-new-directory allow created directories to persist after completing?