
/**
 * JMichelle (Java Midori Shell)
 * Copyright (C) 2000 Midori IGA 
 *   (http://www01.u-page.so-net.ne.jp/db3/midori/midosoft.html)
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

package jp.ne.nifty.iga.midori.shell.dir;

import java.io.*;
import java.util.*;

/**
 * JMichelle (Java Midori Shell) : path class
 */
public class MdShellDirFileSystemUtil
{
	//public static final char getSeparatorChar()
	//{
	//	String strSeparator=System.getProperty("file.separator");
	//	return strSeparator.charAt(0);
	//}
	//
	//public static final String getSeparator()
	//{
	//	return System.getProperty("file.separator");
	//}
	//
	//public static final String getShortName(String strFullName)
	//{
	//	strFullName=MdShellDirFactory.trimDeviceName(strFullName);
	//
	//	// separator bugbugbug
	//	int iFindCut=strFullName.lastIndexOf(getSeparatorChar());
	//	if(iFindCut<0)
	//	{
	//		return null;
	//	}
	//	int iFindFirst=strFullName.indexOf(getSeparatorChar());
	//	boolean isEndWith=strFullName.endsWith(getSeparator());
	//	if(iFindCut==iFindFirst
	//	&& isEndWith)
	//	{
	//		// root of this drive
	//		return strFullName;
	//	}
	//	else
	//	{
	//		return strFullName.substring(iFindCut+1);
	//	}
	//}
	//
	//public static final String getPathWithoutShortName(String strFullName)
	//{
	//	// separator bugbugbug
	//	int iFindCut=strFullName.lastIndexOf(getSeparatorChar());
	//	if(iFindCut<0)
	//	{
	//		return null;
	//	}
	//	int iFindFirst=strFullName.indexOf(getSeparatorChar());
	//	boolean isEndWith=strFullName.endsWith(getSeparator());
	//	if(iFindCut==iFindFirst
	//	&& isEndWith)
	//	{
	//		return strFullName;
	//	}
	//	else
	//	{
	//		return strFullName.substring(0,iFindCut);
	//	}
	//}
}


