> Here's a tricky case that doesn't show up in your example: > In each case above, the directory names are distinct. > how about: >['/desk', '/desk/ethanallen', '/desk/ikea', > '/desktop', /desktop/pc', '/desktop/mac'] >Should the answer be ['/desk'] or ['/desk', '/desktop'] ? Hi Scott good point. It should be: ['/desk', '/desktop']