code: function formatPathname(urlobj)
  {
  	var pathname = joinDirs(urlobj.extra.directory, urlobj.extra.directoryLeadingSlash);
  	
  	if (urlobj.extra.filename !== null)
  	{
  		pathname += urlobj.extra.filename;
  	}
  	
  	return pathname;
  }
docs: TODO :: needs tests and documentation (?)