Here you can find the source of getUNIXfilePath(String fileName)
public static String getUNIXfilePath(String fileName)
//package com.java2s; //License from project: Apache License import java.io.*; public class Main { public static String getUNIXfilePath(String fileName) { File file = new File(fileName); return toUNIXpath(file.getAbsolutePath()); }/*from w w w . j a va 2s . c om*/ public static String toUNIXpath(String filePath) { return filePath.replace('\\', '/'); } }