From: Garming Sam Date: Wed, 9 May 2018 03:39:09 +0000 (+1200) Subject: pysmb: Add some more documentation for conn.list X-Git-Tag: ldb-1.4.0~291 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cda3b233372dd72c210a39f6efeaa8dbf26e9c67;p=thirdparty%2Fsamba.git pysmb: Add some more documentation for conn.list There are two options which are undocumented. Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Sat May 12 04:57:29 CEST 2018 on sn-devel-144 --- diff --git a/source4/libcli/pysmb.c b/source4/libcli/pysmb.c index a370ab2a98e..5bb3807ab76 100644 --- a/source4/libcli/pysmb.c +++ b/source4/libcli/pysmb.c @@ -534,7 +534,11 @@ static PyMethodDef py_smb_methods[] = { PY_DESC_PY3_BYTES " str to file." }, { "list", (PyCFunction)py_smb_list, METH_VARARGS|METH_KEYWORDS, - "list(path) -> directory contents as a dictionary\n\n \ + "list(path, access_mask='*', attribs=DEFAULT_ATTRS) -> \ +directory contents as a dictionary\n \ + DEFAULT_ATTRS: FILE_ATTRIBUTE_SYSTEM | \ +FILE_ATTRIBUTE_DIRECTORY | \ +FILE_ATTRIBUTE_ARCHIVE\n\n \ List contents of a directory. The keys are, \n \ \tname: Long name of the directory item\n \ \tshort_name: Short name of the directory item\n \