pysmb: Add some more documentation for conn.list
authorGarming Sam <garming@catalyst.net.nz>
Wed, 9 May 2018 03:39:09 +0000 (15:39 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Sat, 12 May 2018 02:57:29 +0000 (04:57 +0200)
There are two options which are undocumented.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat May 12 04:57:29 CEST 2018 on sn-devel-144

source4/libcli/pysmb.c

index a370ab2a98e718994210d69692038252c8f648f4..5bb3807ab76af1b1563d6a6f08b399b7c346392e 100644 (file)
@@ -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 \