```python
Read a DDUF file and return a dictionary of entries.

Only the metadata is read, the data is not loaded in memory.

Args:
dduf_path (`str` or `os.PathLike`):
The path to the DDUF file to read.

Returns:
`Dict[str, DDUFEntry]`:
A dictionary of [`DDUFEntry`] indexed by filename.

Raises:
- [`DDUFCorruptedFileError`]: If the DDUF file is corrupted (i.e. doesn't follow the DDUF format).

Example:
```python
>>> import json
>>> import safetensors.torch
>>> from huggingface_hub import read_dduf_file