Helper struct to change the directory for the current scope.
Convenience overload that takes a string.
auto orig = cwd(); with(ScopedChdir("..")) { assertNotEqual(orig, cwd()); } assertEqual(orig, cwd());
See Implementation
Helper struct to change the directory for the current scope.