From 37e80de517bde5126d71eb0dc119a1cc17b8ba59 Mon Sep 17 00:00:00 2001 From: cuihaikuo Date: Mon, 25 Dec 2017 15:55:33 +0800 Subject: [PATCH] Add list_dir_with_perm() to seafile_api. --- python/seaserv/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/seaserv/api.py b/python/seaserv/api.py index fcd76ee..f71cc09 100644 --- a/python/seaserv/api.py +++ b/python/seaserv/api.py @@ -221,6 +221,9 @@ class SeafileAPI(object): def get_dir_id_by_commit_and_path(self, repo_id, commit_id, path): return seafserv_threaded_rpc.get_dir_id_by_commit_and_path(repo_id, commit_id, path) + def list_dir_with_perm(self, repo_id, dir_path, dir_id, user, offset=-1, limit=-1): + return seafserv_threaded_rpc.list_dir_with_perm (repo_id, dir_path, dir_id, user, offset, limit) + # file/dir operations def post_file(self, repo_id, tmp_file_path, parent_dir, filename, username):