Menu

#14 Bug in homepage example

open
nobody
5
2004-12-30
2004-12-30
Anonymous
No

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.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.