<NME> DirUtils.java
<BEF> ADDFILE
<MSG> 完善化client的配置
<DFF> @@ -0,0 +1,31 @@
+package com.baidu.disconf2.client.test.utils;
+
+import java.io.File;
+import java.io.IOException;
+
+/**
+ * 
+ * @author liaoqiqi
+ * @version 2014-6-17
+ */
+public class DirUtils {
+
+    public static File createTempDirectory() throws IOException {
+
+        final File temp;
+
+        temp = File.createTempFile("temp", Long.toString(System.nanoTime()));
+
+        if (!(temp.delete())) {
+            throw new IOException("Could not delete temp file: "
+                    + temp.getAbsolutePath());
+        }
+
+        if (!(temp.mkdir())) {
+            throw new IOException("Could not create temp directory: "
+                    + temp.getAbsolutePath());
+        }
+
+        return (temp);
+    }
+}

{'addition_count': 31, 'commit_subject': '完善化client的配置', 'deletion_count': 0, 'file_extension': '.java', 'lang': 'java', 'license': 'apache-2.0', 'repo_name': 'knightliao/disconf'}