Actually I don't believe that's the case - I don't believe that IO occurs during this check. I believe that the absence of a name as the last component to a path determines whether it is a directory.

Also, it may be wise to avoid mutating the Asset controller as I've made extensive changes and this will cause a merge conflict.