compiler: close temporary directories before removing them #80

Merged anil.recoil.org
targeting main from anil.recoil.org/ocaml-forester:tmpdir
Merged opened by anil.recoil.org
targeting main from anil.recoil.org/ocaml-forester:tmpdir

On Windows, you can't unlink open directories, so this change closes them before calling the rmtree. It shouldn't affect Linux I believe, but I'm not sure why the simpler form of with_open_dir wasnt also used there (debugging?).

Commits 1

compiler: close temporary directories before removing them
Sign up or Sign in to add to the discussion.