summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPrashanth Pai <ppai@redhat.com>2016-06-13 15:55:49 +0530
committerPrashanth Pai <ppai@redhat.com>2016-06-30 00:12:07 +0530
commitb46451d02d2660cdf46338b2e535467bf39e5164 (patch)
treecd8f6cd68bab24e793ee139f687f5050def8ed6a /doc
parente8229ddeca824e1cfdc2d95cc2bce3c731ea7372 (diff)
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 <ppai@redhat.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api-reference.rst5
1 files changed, 5 insertions, 0 deletions
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
----------