/* Copyright (C) 2003-2015 The University of Iowa * * This file is part of the Das2 utilities library. * * Das2 utilities are free software: you can redistribute and/or modify them * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or (at your * option) any later version. * * Das2 utilities are distributed in the hope that they will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * License for more details. * * You should have received a copy of the GNU Lesser General Public License * as well as the GNU General Public License along with Das2 utilities. If * not, see . * * SubFileSystem.java * * Created on January 16, 2007, 2:19 PM * * */ package org.das2.util.filesystem; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URISyntaxException; import java.util.logging.Level; import java.util.logging.Logger; /** * present part of a filesystem as a filesystem. * @author Jeremy */ public class SubFileSystem extends FileSystem { FileSystem parent; String dir; private static String trimFront( String dir ) { int i=0; while ( i