Overview
CFBStorage represents a mutable STORAGE_OBJECT node within a CFBDocument directory tree. It acts as a container for child CFBStorage and CFBStream instances and maps directly to a storage directory entry in the CFB specification. Access the root storage via CFBDocument.root, then use add_storage and add_stream to build the hierarchy, or manipulate the children list directly.
Properties
| Property | Type | Description |
|---|
name | str | Name of this storage entry as it appears in the CFB directory. |
clsid | bytes | 16-byte CLSID for this storage, or 16 zero bytes if absent. |
state_bits | int | User-defined state bits stored in the CFB directory entry. |
creation_time | FileTime | Creation timestamp as a FileTime value. |
modified_time | FileTime | Last-modified timestamp as a FileTime value. |
children | list[CFBStorage | CFBStream] | Direct child storages and streams in insertion order. |
Methods
| Method | Returns | Description |
|---|
add_storage(storage) | CFBStorage | Appends storage (or a new empty CFBStorage if None) as a child and returns it. |
add_stream(stream) | CFBStream | Appends stream as a child stream and returns it. |
See Also