public static void setUpDirectories() throws IOException {
File homeDirectory = tempFolder.newFolder("fakeHomeDir").getCanonicalFile();
File currentDirectory = tempFolder.newFolder("testrepo").getCanonicalFile();
if (GlobalState.platform == null) {
GlobalState.platform = new TestPlatform(currentDirectory, homeDirectory);
} else {
GlobalState.platform.setWorkingDir(currentDirectory);
GlobalState.platform.setUserHome(homeDirectory);
}
}