mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-11 03:54:52 +01:00
096c600b96
Remove the __len__ functions, as they exhaust the iterator, breaking
'list(x)'.
This is a follow-up to 8866a89e
.
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
32 lines
791 B
ReStructuredText
32 lines
791 B
ReStructuredText
Files and directories
|
|
=====================
|
|
|
|
.. currentmodule:: notmuch
|
|
|
|
:class:`Filenames` -- An iterator over filenames
|
|
------------------------------------------------
|
|
|
|
.. autoclass:: Filenames
|
|
|
|
.. method:: Filenames.__len__
|
|
.. warning::
|
|
:meth:`__len__` was removed in version 0.22 as it exhausted the
|
|
iterator and broke list(Filenames()). Use `len(list(names))`
|
|
instead.
|
|
|
|
:class:`Directoy` -- A directory entry in the database
|
|
------------------------------------------------------
|
|
|
|
.. autoclass:: Directory
|
|
|
|
.. automethod:: Directory.get_child_files
|
|
|
|
.. automethod:: Directory.get_child_directories
|
|
|
|
.. automethod:: Directory.get_mtime
|
|
|
|
.. automethod:: Directory.set_mtime
|
|
|
|
.. autoattribute:: Directory.mtime
|
|
|
|
.. autoattribute:: Directory.path
|