Skip to content

Commit 36f1511

Browse files
authored
Merge pull request #12 from konstantin-f/main
Add deleteshare method
2 parents 2cd1377 + b1f274b commit 36f1511

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

filecloudapi/fcserver.py

+7
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,13 @@ def quickshare(self, sharelocation: str, adminproxyuserid: str = "") -> FCShare:
959959
str_to_bool(resp.findtext("./share/allowpublicuploadonly", "")),
960960
)
961961

962+
def deleteshare(self, share: FCShare) -> None:
963+
resp = self._api_call(
964+
"/core/deleteshare",
965+
{"shareid": share.shareid},
966+
)
967+
self._raise_exception_from_command(resp)
968+
962969
def getshareforpath(self, path: str, adminproxyuserid: str = "") -> FCShare:
963970
"""
964971
Share 'path'

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[tool.poetry]
22

33
name = "filecloudapi-python"
4-
version = "0.4.2"
4+
version = "0.4.3"
55
description = "A Python library to connect to a Filecloud server"
66

77
packages = [{ include = "filecloudapi" }]

0 commit comments

Comments
 (0)