I think that "look up" was right ; even if "looking in a directory" can be easily interpreted as "searching in a directory", "look up" is more explicit (see [the first meaning of the word here](http://www.collinsdictionary.com/dictionary/american/look-up) for reference). What do you think ?