s3:pylibsmb: Add flags used by .list() to SMB Py bindings
authorTim Beale <timbeale@catalyst.net.nz>
Thu, 13 Dec 2018 21:30:38 +0000 (10:30 +1300)
committerTim Beale <timbeale@samba.org>
Mon, 7 Jan 2019 21:48:28 +0000 (22:48 +0100)
commit3ba32aa55fa6bcd89a2ae9ed73e748ea8ca30b26
treef8b2a84c44aaff35e939f051dda10abe9314ce34
parent27e2b5c6c0c8daada0763fd2c90b3b17c0a68cd6
s3:pylibsmb: Add flags used by .list() to SMB Py bindings

These flags are exposed by the s4 code. Python code that calls .list()
checks the returned attribs/mode for the directory listing, e.g. to work
out whether something is a sub-directory:

  if item['attrib'] & libsmb.FILE_ATTRIBUTE_DIRECTORY...

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13676

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/libsmb/pylibsmb.c