DirectoryEntry
概述
DirectoryEntry 是Python的Aspose.Email FOSS中的一个类.
一个存储/流对象及其树链接的固定大小目录.
这个类提供了在Python程序中使用DirectoryEntry 对象的3种方法. 有的方法包括: is_root, is_storage, is_stream. 在安装Python包的Aspose.Email FOSS后,所有公众成员都可以访问任何 Python 应用程序. 特性: child_id, clsid, color_flag, creation_time, directory_entry_name_length, left_sibling_id,另外8个.
属性
| 名称: | 类型 | Access | 描述情况 |
|---|---|---|---|
stream_id | StreamId | 阅读 | 获取 stream id。. |
name | str | 阅读 | 获取名称。. |
directory_entry_name_length | int | 阅读 | 获取目录项名称的长度。. |
object_type | DirectoryObjectType | 阅读 | 获取对象类型。. |
color_flag | DirectoryColorFlag | 阅读 | 获取颜色标志。. |
left_sibling_id | StreamId | 阅读 | 获取左侧兄弟的 ID。. |
right_sibling_id | StreamId | 阅读 | 获取右侧兄弟的 ID。. |
child_id | StreamId | 阅读 | 获取子 ID。. |
clsid | bytes | 阅读 | 获取 clsid。. |
state_bits | int | 阅读 | 获取状态位。. |
creation_time | FileTime | 阅读 | 获取创建时间。. |
modified_time | FileTime | 阅读 | 获取修改时间。. |
starting_sector_location | SectorNumber | 阅读 | 获取起始扇区位置。. |
stream_size | int | 阅读 | 获取流的大小。. |
方法
| Signature | 描述情况 |
|---|---|
is_storage() → bool | 如果设置存储,则返回true. |
is_stream() → bool | 如果设置流,则返回true. |
is_root() → bool | 如果设置了root,则返回true. |