Platforms to show: All Mac Windows Linux Cross-Platform
FAQ.How to check if a folder/directory has subfolders?
Answer: You can use code like this to check all items in a folder:
We use trueitem() here to avoid resolving alias/link files.
Also we check for nil as we may not have permission to see all items.
And if one is a directory, we return without checking the rest.