Java tutorial
//package com.java2s; /*********************************************************************************************************************** * Copyright (c) 2008 empolis GmbH and brox IT Solutions GmbH. 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: Marius Cimpean (brox IT Solutions GmbH) - initial creator **********************************************************************************************************************/ import java.io.File; public class Main { /** Binary Storage Service configured root location */ private static File _root = null; /** * Check if current record's parent is identically with the binary storage persistence configured-root-location. * * @param record * @return boolean true in case parent location is identically with root; false otherwise. */ private static boolean isRecordParentRoot(final File record) { return record.getParentFile().equals(_root); } }