code: public static String formatLongname(SftpFileAttributes attrs,
  			String filename) {
  
  		StringBuffer str = new StringBuffer();
  		str.append(pad(10 - attrs.getPermissionsString().length())
  				+ attrs.getPermissionsString());
  		str.append("    1 ");
  		str.append(attrs.getUID() + pad(8 - attrs.getUID().length())); // uid
  		str.append(" ");
  		str.append(attrs.getGID() + pad(8 - attrs.getGID().length())); // gid
  		str.append(" ");
  		str.append(pad(8 - attrs.getSize().toString().length())
  				+ attrs.getSize().toString());
  		str.append(" ");
  		str.append(pad(12 - getModTimeString(attrs.getModifiedTime()).length())
  				+ getModTimeString(attrs.getModifiedTime()));
  		str.append(" ");
  		str.append(filename);
  
  		return str.toString();
  	}
docs: Format a String with the details of the file. <blockquote>
  
  <pre>
  -rwxr-xr-x   1 mjos     staff      348911 Mar 25 14:29 t-filexfer
  </pre>
  
  </blockquote>
  
  @param attrs
  @param filename
  @return String