We lost the case that returns `false` in `isdir` if it's not a directory.