I'm trying to check if a folder has any subfolders without iterating through its children, in Linux. The closest I've found so far is using `ftw` and stopping at the first subfolder - or using `scandir` and filtering through the results. Both, are, however, an overkill for my purposes, I simply want a yes/no.

On Windows, this is done by calling `SHGetFileInfo` and then testing `dwAttributes & SFGAO_HASSUBFOLDER` on the returned structure. Is there such an option on Linux?