s3:pylibsmb: Add .unlink() API to SMB Py bindings
authorTim Beale <timbeale@catalyst.net.nz>
Sun, 2 Dec 2018 21:50:19 +0000 (10:50 +1300)
committerTim Beale <timbeale@samba.org>
Mon, 7 Jan 2019 00:23:07 +0000 (01:23 +0100)
commit8096419c712a66ee2d577a98dfba108a3bd7d6fe
treec840729be075e14e5b5d4aeb60b5b9b6abdd7afc
parent6fff2c26dacb49da749a4ee8261639f518342573
s3:pylibsmb: Add .unlink() API to SMB Py bindings

Add a basic .unlink() API to the source3 bindings. This is based on the
source4 python bindings, but uses the source3 client library APIs.
(We use a helper function to do most of the work, because we will need
to reuse it in order to support the deltree API).

Update the source4 test to use the source3 API. We will gradually
convert it over, and then delete the source4 python bindings.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

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

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/smb.py
source3/libsmb/pylibsmb.c