Bug in homepage example
Brought to you by:
samokhodkin
On the homepage under Documentation for FileSearching
example there are some typos with the following code
PathPattern pp=new PathPattern("/tmp/**/*.java");
Enumeratuion e=pp.enumerateFiles();
while(e.hasMoreElement()){
File f=(File)e.nextElement();
f.delete();
}
I also recommend changing the f.delete() to something
else so people who cut and past just to try this don't
end up deleting files by mistake.