public static java.io.File getParentFilePath(String filePath) { File f = new File(filePath); return f.getParentFile(); }
public static String getParentPath(String filePath) { File f = new File(filePath); return f.getParentFile().toString(); }