public static String makePathASafeFileName(String filePath) {
    return new File(filePath).getPath().replaceAll("\\\\", "/");
  }
Used by various tests to make sure the path is safe for Windows
hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HCatUtil.java