Here you can find the source of normalizeLocalPath(final String localPath)
public static String normalizeLocalPath(final String localPath)
//package com.java2s; // Licensed under the MIT license. See License.txt in the repository root. public class Main { /**/*from www . j av a 2 s .c o m*/ * Remove any trailing "\" from the end of a windows style local path. */ public static String normalizeLocalPath(final String localPath) { if (localPath.endsWith("\\") && localPath.length() > 3) //$NON-NLS-1$ { return localPath.substring(0, localPath.length() - 1); } return localPath; } }