Author Topic: Finding directories  (Read 487 times)

I know there are functions to find files inside a directory, but is there anything to find other folders inside a directory, without a brute-force search?

If you mean literal folders, no, not particularly. You have to just search every file and get the directory it's in and add it to a list.

However, with zips, you can search for a *.zip file.

If you mean literal folders, no, not particularly. You have to just search every file and get the directory it's in and add it to a list.

However, with zips, you can search for a *.zip file.
So the file search (find first/next file) will include files in subdirectories too?

So the file search (find first/next file) will include files in subdirectories too?
Why you no just try it out?
If not you haz to do findFirstFile("config/blah/*/*.txt")
Willz find all files in a subfolder in config/blah that end with .txt

Won't find files in config/blah or in config/blah/bleh/bluh(not sure bout this one)




I think it also finds files in subfolders?

Yes, findNextFile will find files in subfolders.

arn't folders a file though?

arn't folders a file though?
They're a sort of partition on your hard-drive.