We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58cb7c3 commit 1eaa36fCopy full SHA for 1eaa36f
ex_app/lib/all_tools/files.py
@@ -25,6 +25,24 @@ def get_file_content(file_path: str):
25
26
return response.text
27
28
+
29
+ @tool
30
+ @dangerous_tool
31
+ def create_public_sharing_link(path: str):
32
+ """
33
+ Creates a public sharing link for a file or folder
34
+ :param path: the path of the file or folder
35
+ :return:
36
37
38
+ response = nc.ocs('POST', '/ocs/v2.php/apps/files_sharing/api/v1/shares', json={
39
+ 'path': path,
40
+ 'shareType': 3,
41
+ })
42
43
+ return response
44
45
return [
- get_file_content
46
+ get_file_content,
47
+ create_public_sharing_link,
48
]
0 commit comments