Returns the index of the specified item within the directory. If the
target item appears at more than one index, the first located index will
be returned. If the directory does not contain the specified item,
.nil
is returned.
Item equality is determined by using the
== method of
item.