Camel.FolderInfo¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
child |
r/w |
||
display_name |
r/w |
||
flags |
r/w |
||
full_name |
r/w |
||
next |
r/w |
||
parent |
r/w |
||
total |
r/w |
||
unread |
r/w |
Methods¶
class |
|
class |
|
|
|
|
Details¶
- class Camel.FolderInfo¶
- classmethod build(folders, namespace_, separator, short_names)¶
- Parameters:
folders ([
Camel.FolderInfo
]) – an array ofCamel.FolderInfo
namespace (
str
) – an ignorable prefix on the folder namesseparator (
int
) – the hieararchy separator charactershort_names (
bool
) –True
if the (short) name of a folder is theCamel.part
after the last separator in the full name.False
if it is the full name.
- Returns:
the top level of the tree of linked folder info.
- Return type:
This takes an array of folders and attaches them together according to the hierarchy described by their full_names and separator. If namespace_ is non-
None
, then it will be ignored as a full_name prefix, for purposes of comparison. If necessary,Camel.FolderInfo.build
() will create additionalCamel.FolderInfo
withNone
urls to fill in gaps in the tree. The value of short_names is used in constructing the names of these intermediate folders.
- classmethod new()¶
- Returns:
a new
Camel.FolderInfo
instance- Return type:
Allocates a new
Camel.FolderInfo
instance. Free it withCamel.FolderInfo.free
().New in version 2.22.
- clone()¶
- Returns:
the cloned
Camel.FolderInfo
tree.- Return type:
Clones self recursively.
- free()¶
Frees self.