Java, searching through folders to match a name
- by Nick
Hi folks,
I using java to search for a file or folder that matches a specific case. For instance i want to search through all the files and folders and iterate through them as many times as necessary untill i find a result.
The catch
I searching for files and folders through a binary image of a file system. This means i doubt there are any preexisting classes such java.file.* to do it for me. If it helps i can tell you that i can tell the difference between files and folders easily enough. (a folder is flagged as 0x20)
The only way i can think of is to do a standard loop and iterated several times but this limits me if a file or folder is several folders deep.
All input greatly welcome