Bulk up +URLWithPath:… to take an isDir argument
AppleDoc +URLWithPath:isDirectory:hostURL: