public static boolean isDirectory(String path)
    {
	if(isPathValid(path))
	{
	    File dir = new File(path);
	    if ( dir.isDirectory() ){return true;}
	    else{return false;}
	}
	else
	    return false;
    }