public final static void deampDir(cachedir cd)
 {

     for(cacheobject o1: cd.getObjects())
     {
        cacheobject o2;
        String n1,n2;

        n1=o1.getName();
        n2=deamp(n1);
        if(n1.equals(n2)) continue;
        o2=cd.getObject(n2);
        if(o2.getLocalName()!=null)
        {
        	/* zjistit, ktery je pozdejsi */
        	if(o2.getDate()>o1.getDate())
        	{
        		System.out.println("[INFO] Removing "+cd.getLocalDir()+n1+" URL name same as deamp version, but older.");
        		if(!nosave) o1.delete();
        		continue;
        	} else
        	{
        		System.out.println("[INFO] Removing older "+cd.getLocalDir()+n1+" Making name available for newer version.");
        		if(!nosave) 
        			o2.delete();
        		else
        			cd.remove(o2);
        	}
        }
        /* rename o1 to n2 */
        o1.setName(n2);
        System.out.println("[INFO] Unquoting "+cd.getLocalDir()+n1+" as "+n2);
     }
 }