Add DirectoryModel.contains(Path) method.