Github user dkuppitz commented on a diff in the pull request: https://github.com/apache/incubator-tinkerpop/pull/282#discussion_r57650808 --- Diff: hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/process/computer/AbstractHadoopGraphComputer.java --- @@ -195,4 +202,27 @@ public boolean supportsDirectObjects() { return false; } } + + ////////// + + public static File copyDirectoryIfNonExistent(final FileSystem fileSystem, final String localDirectory) { + try { + final String hadoopGremlinLibsRemote = "hadoop-gremlin-" + Gremlin.version() + "-libs"; + File file = new File(localDirectory); + if ((Boolean.valueOf(System.getProperty("is.testing", "false")) || !file.exists()) && fileSystem.exists(new Path(localDirectory)) && fileSystem.isDirectory(new Path(localDirectory))) { + final File tempDirectory = new File(System.getProperty("java.io.tmpdir") + "/" + hadoopGremlinLibsRemote); + if (!tempDirectory.exists()) assert tempDirectory.mkdir(); --- End diff -- `mkdir()` should be `mkdirs()` since `java.io.dir` can be set by the user and we shouldn't make assumptions about existing directory structures.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---