in reply to evaluating directory path length

You can use ->exec to add custom filters. ->prune would be useful here too.