From b46451d02d2660cdf46338b2e535467bf39e5164 Mon Sep 17 00:00:00 2001 From: Prashanth Pai Date: Mon, 13 Jun 2016 15:55:49 +0530 Subject: Expose glfs_readdirplus_r This patch does the following: * Implements Volume.listdir_with_stat() API which internally invokes glfs_readdirplus_r to return directory entries along with stat for each entry. * Implements Volume.scandir() which is similar to os.scandir() present in Python 3.5 * Makes Dir class iterable. * Enables Dir class to raise OSError when glfs_readdir* calls fail. Previously, these failures were silently being ignored and treated as a case of EOF. Change-Id: Id918c39a7ef3882553e9bcd3fbf9455ee1c25a83 Signed-off-by: Prashanth Pai --- doc/api-reference.rst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'doc') diff --git a/doc/api-reference.rst b/doc/api-reference.rst index 98b0427..124096e 100644 --- a/doc/api-reference.rst +++ b/doc/api-reference.rst @@ -11,6 +11,11 @@ Volume Class .. automethod:: gluster.gfapi.Volume.__init__ +.. autoclass:: gluster.gfapi.DirEntry + :members: + :undoc-members: + :noindex: + File Class ---------- -- cgit