]> git.notmuchmail.org Git - notmuch/blob - bindings/python/docs/source/filesystem.rst
emacs: Add new option notmuch-search-hide-excluded
[notmuch] / bindings / python / docs / source / filesystem.rst
1 Files and directories
2 =====================
3
4 .. currentmodule:: notmuch
5
6 :class:`Filenames` -- An iterator over filenames
7 ------------------------------------------------
8
9 .. autoclass:: Filenames
10
11    .. method:: Filenames.__len__
12    .. warning::
13       :meth:`__len__` was removed in version 0.22 as it exhausted the
14       iterator and broke list(Filenames()). Use `len(list(names))`
15       instead.
16
17 :class:`Directory` -- A directory entry in the database
18 -------------------------------------------------------
19
20 .. autoclass:: Directory
21
22    .. automethod:: Directory.get_child_files
23
24    .. automethod:: Directory.get_child_directories
25
26    .. automethod:: Directory.get_mtime
27
28    .. automethod:: Directory.set_mtime
29
30    .. autoattribute:: Directory.mtime
31
32    .. autoattribute:: Directory.path