public static File createTestTempFileOrDir(File parent, String name, boolean dir) throws IOException {
		File f = new File(parent, name);
		f.deleteOnExit();
		if (dir && !f.mkdirs()) {
			throw new IOException("디렉토리를 생성할 수 없습니다: " + f);
		}
		return f;
	}