java.io.File f2=new java.io.File(tmpDir2,"test.txt");
FileWriter w = new FileWriter(f1,true); w.write("text1"); w.close();
w = new FileWriter(f2,true); w.write("text2"); w.close();
ff1.upload(f1);
ff2.upload(f2);
Thread.sleep(1000); // wait for the index
List<? extends Resource> children1 = ff1.children();
List<? extends Resource> children2 = ff2.children();