private final static boolean moveOutOfWay(File what)
{
    if(!what.exists()) return false;	 // must return false because upper directories can still clash
    if(what.isDirectory()) return false; // no way to rename directory
    /* 1. ziskat jeho adresar */
    String home,urlp;
    home=what.getParent()+File.separatorChar;
    urlp=ui.directoryToURL(home);
//    System.out.println("/debug/ moveout file= "+what+" in dir="+home+" uribase="+urlp);
    cachedir d=httpreq.manager.getDir(home,urlp);
    /* 2. projit objekty a najit ten co nam tam vadi */

    for(cacheobject o : d.getObjects())
    {
    	if(!o.needSave()) continue;
    	if(o.getLocalName().equalsIgnoreCase(what.getName()))
    	{
    		o.regenName();
    		File to=new File(home+o.getLocalName());
    		if(!o.rename(what,to)) o.delete();
    	}
    }
    // delete if still exists
    what.delete();
    return true;
}