2012-02-24 01:34:15 +01:00
|
|
|
Files and directories
|
|
|
|
=====================
|
|
|
|
|
|
|
|
.. currentmodule:: notmuch
|
|
|
|
|
|
|
|
:class:`Filenames` -- An iterator over filenames
|
|
|
|
------------------------------------------------
|
|
|
|
|
|
|
|
.. autoclass:: Filenames
|
|
|
|
|
2016-01-08 12:27:20 +01:00
|
|
|
.. 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.
|
2012-02-24 01:34:15 +01:00
|
|
|
|
2018-03-18 03:30:25 +01:00
|
|
|
:class:`Directory` -- A directory entry in the database
|
2019-02-11 19:22:36 +01:00
|
|
|
-------------------------------------------------------
|
2012-02-24 01:34:15 +01:00
|
|
|
|
|
|
|
.. 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
|