Hi, anyone can help me? I need to create a program to list all the files in directories and subdirectories. For example if user choose local disk D. The program will display all the files path and name. FYI, im using netbeans ide 8.2.
If this is windows, I am wondering how that indexing service works, and if they still use it (it used to be a hog that all computer savvy people turned off). It might be that you can just ask for it, work already been done by the OS.
If that is not the case, you might try to directly read the master file table entries. But I can't recall if those have the path? A little research. You want to avoid crawling the disk looking file by file ... that punishes the disk AND takes forever. There has to be a way to get this info "directly".