@Override
	public String getParent(FakeFile fake) {
		String path = fake.getPath();
		int length = path.length(), firstInPath = 0;
		if (getSeparatorChar() == '\\' && length > 2 && path.charAt(1) == ':') {
			firstInPath = 2;
		}
		int index = path.lastIndexOf(getSeparatorChar());
		if (index == -1 && firstInPath > 0) {
			index = 2;
		}
		if (index == -1 || path.charAt(length - 1) == getSeparatorChar()) {
			return null;
		}
		if (path.indexOf(getSeparatorChar()) == index
				&& path.charAt(firstInPath) == getSeparatorChar()) {
			return path.substring(0, index + 1);
		}
		return path.substring(0, index);
	}