Do not open the file, we just want to register the name.
Pass the OpenFile flag also to DirectoryLookup.