Reputation: 3022
I want to know if there is a way to check if a folder contains subfolders, but without using the FindFirst/FindNext
to check every item, because it's slow when the folder contains many files and no subfolders.
Upvotes: 2
Views: 1043
Reputation: 612993
I think in general there is no way to ask a file system object if it contains any directories. I think you need to enumerate the object's children as you have described, for instance with calls to FindFirstFile
, FindNextFile
etc.
Upvotes: 1