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.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
stream_id | StreamId | Read | Is the identifier of the stream associated with this entry |
name | str | Read | Is the Unicode name of the directory entry |
directory_entry_name_length | int | Read | Is the length of the entry name in characters |
object_type | DirectoryObjectType | Read | Indicates the entry type (storage, stream, root) via DirectoryObjectType |
color_flag | DirectoryColorFlag | Read | Stores the red/black tree color flag used for entry ordering |
left_sibling_id | StreamId | Read | Is the stream identifier of the left sibling in the directory tree |
right_sibling_id | StreamId | Read | |
child_id | StreamId | Read | Is the stream identifier of the first child entry |
clsid | bytes | Read | Holds the 16‑byte class identifier associated with the entry |
state_bits | int | Read | Contains state flag bits for the entry (e.g., hidden, read‑only) |
creation_time | FileTime | Read | Records the file time when the entry was created |
modified_time | FileTime | Read | Records the file time when the entry was last modified |
starting_sector_location | SectorNumber | Read | Is the sector number where the entry’s data begins |
stream_size | int | Read | Is the size in bytes of the stream data for this entry |
Methods
| Signature | Description |
|---|---|
is_storage() → bool | Returns True if the entry represents a storage object |
is_stream() → bool | Returns True if the entry represents a stream object |
is_root() → bool | Returns True if the entry is the root storage of the CFB file |