remember the whole directory tree, and complete them as much as possible