public static void resetDirectory(final String pathToDelete) {
        final File f = new File(pathToDelete);
        if (f.exists()) {
            try {
                FileUtils.deleteDirectory(f);
            } catch (IOException ioe) {
                throw new RuntimeException(String.format(
                        "Manually delete the %s directory - it could not be done automatically", pathToDelete), ioe);
            }
        }
        f.mkdirs();
    }
@author Stephen Mallette (http://stephen.genoprime.com)
gremlin-util/src/test/java/org/apache/tinkerpop/gremlin/structure/io/AbstractCompatibilityTest.java