if (file.isDirectory()) { return getDirectoryListing().length; }
  public int getContentLength()  {    try      {	if (!connected)	  connect();        	return (int) file.length();      }    catch (IOException e)      {	return -1;      }  }