[NO ISSUE][HYR][MISC] += FileUtil.joinPath(Unix|Windows)

Change-Id: I9c41230317619b5a740cf9c79ec2307a19f52fef
Reviewed-on: https://asterix-gerrit.ics.uci.edu/c/asterixdb/+/9323
Integration-Tests: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>
Reviewed-by: Michael Blow <mblow@apache.org>
Reviewed-by: Ali Alsuliman <ali.al.solaiman@gmail.com>
diff --git a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/file/FileUtil.java b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/file/FileUtil.java
index 7d162ee..35a3629 100644
--- a/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/file/FileUtil.java
+++ b/hyracks-fullstack/hyracks/hyracks-util/src/main/java/org/apache/hyracks/util/file/FileUtil.java
@@ -43,6 +43,14 @@
         return joinPath(File.separatorChar, elements);
     }
 
+    public static String joinPathUnix(String... elements) {
+        return joinPath('/', elements);
+    }
+
+    public static String joinPathWindows(String... elements) {
+        return joinPath('\\', elements);
+    }
+
     public static void forceMkdirs(File dir) throws IOException {
         File canonicalDir = dir.getCanonicalFile();
         try {