public void traverseFilesFolders () {
if (referencedFile.exists()) {
traverseFilesFolders(referencedFile);
} else {
System.out.println("File or Folder does not exist");
}
}
Wednesday, October 21, 2009
Traversing Folder and Files
Here is an updated code to inform you if the file or folder specified does not exists. You may take a look at the original code at this article.
Email the blog author at: nicholaskeytholeong [at] gmail [dot] com
Labels:
Algorithms,
General Knowledge,
Java,
Useful Method
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment