> and use the trailing slash to skip the need for a directory check.

I'm sorry, I can't understand what you meant because of lack of my English ability.
Could you give me a concrete explanation?