def GetFileEntryByPathSpec(self, path_spec): """Retrieves a file entry for a path specification. Args: path_spec (PathSpec): path specification. Returns: BDEFileEntry: file entry or None. """ return bde_file_entry.BDEFileEntry(self._resolver_context, self, path_spec, is_root=True, is_virtual=True)
def testIntialize(self): """Test the __init__ function.""" file_entry = bde_file_entry.BDEFileEntry(self._resolver_context, self._file_system, self._bde_path_spec) self.assertIsNotNone(file_entry)