
Fix the update to `resolvePatternEmptyDirectories` introduced in commit 01dd68e29edc which was incorrectly checking `isOptional`. See gh-26677
Fix the update to `resolvePatternEmptyDirectories` introduced in commit 01dd68e29edc which was incorrectly checking `isOptional`. See gh-26677