commit | fa026ea72ab6ede175c39657305ceeae0ddcdaeb | [log] [tgz] |
---|---|---|
author | Michael Blow <mblow@apache.org> | Fri Dec 11 12:39:59 2020 -0500 |
committer | Michael Blow <mblow@apache.org> | Sat Dec 12 04:43:20 2020 +0000 |
tree | 6c67c22bcb8347a5bbfbf7f06a05993026bcb513 | |
parent | f4ae454e111e7d8b552c63116a6545ca1b5aba98 [diff] |
[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 {