this.name = name; if (name.startsWith(".")) { visible = false; } else { visible = true; }
int slashPos = name.lastIndexOf("/");  if ( slashPos >= 0 ) { if ( name.endsWith("/") ) { setPath( name.substring(0, name.substring(0, name.length()-1).lastIndexOf("/"))); setName( name.substring(name.substring(0, name.length()-1).lastIndexOf("/"))); setMode("d"); }else { setPath( name.substring(0, slashPos) ); setName( name.substring(slashPos) ); } }else setName( name );
	public FTPFile(String name) {		this.name = name;		if (name.startsWith(".")) {			visible = false;		} else {			visible = true;		}	}