shorten isdir