Here you can find the source of isWindowsFileSystem()
public static boolean isWindowsFileSystem()
//package com.java2s; /******************************************************************************* * Copyright (c) 2004, 2014 QNX Software Systems and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors://ww w . ja va 2 s. com * QNX Software Systems - initial API and implementation * Markus Schorn (Wind River Systems) * Ed Swartz (Nokia) * Sergey Prigogin (Google) * James Blackburn (Broadcom Corp.) *******************************************************************************/ public class Main { /** Detect whether we're running on Windows (as IPath does) */ private static final boolean WINDOWS = java.io.File.separatorChar == '\\'; public static boolean isWindowsFileSystem() { return WINDOWS; } }