---
Product: Aspose.Email
Platform: python
Page Type: reference
Canonical URL: https://reference.aspose.org/email/python/directoryentry
---

# DirectoryEntry

## Overview

`DirectoryEntry` is a class in Aspose.Email FOSS for Python.

Fixed-size directory record for one storage/stream object and its tree links.

This class provides 3 methods for working with DirectoryEntry objects in Python programs.
Available methods include: `is_root`, `is_storage`, `is_stream`.
All public members are accessible to any Python application after installing the Aspose.Email FOSS for Python package.
Properties: `child_id`, `clsid`, `color_flag`, `creation_time`, `directory_entry_name_length`, `left_sibling_id`, and 8 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `stream_id` | `StreamId` | Read | Gets the stream id. |
| `name` | `str` | Read | Gets the name. |
| `directory_entry_name_length` | `int` | Read | Gets the directory entry name length. |
| `object_type` | `DirectoryObjectType` | Read | Gets the object type. |
| `color_flag` | `DirectoryColorFlag` | Read | Gets the color flag. |
| `left_sibling_id` | `StreamId` | Read | Gets the left sibling id. |
| `right_sibling_id` | `StreamId` | Read | Gets the right sibling id. |
| `child_id` | `StreamId` | Read | Gets the child id. |
| `clsid` | `bytes` | Read | Gets the clsid. |
| `state_bits` | `int` | Read | Gets the state bits. |
| `creation_time` | `FileTime` | Read | Gets the creation time. |
| `modified_time` | `FileTime` | Read | Gets the modified time. |
| `starting_sector_location` | `SectorNumber` | Read | Gets the starting sector location. |
| `stream_size` | `int` | Read | Gets the stream size. |

## Methods

| Signature | Description |
|-----------|-------------|
| `is_storage()` → `bool` | Returns true if storage is set. |
| `is_stream()` → `bool` | Returns true if stream is set. |
| `is_root()` → `bool` | Returns true if root is set. |

## Examples

```python
from aspose.email_foss.cfb import CFBReader

with CFBReader.from_file("archive.cfb") as reader:
    for entry in reader.iter_storages():
        print(f"storage: {entry.name} sid={entry.stream_id}")
    for entry in reader.iter_streams():
        data = reader.get_stream_data(entry.stream_id)
        print(f"stream: {entry.name}, size={entry.stream_size}")
```

## See Also

- [Aspose.Email for Python — Enterprise API Reference](https://reference.aspose.com/email/python-net/)