示例#1
0
 def list_dir_by_commit_and_path(self,
                                 repo_id,
                                 commit_id,
                                 path,
                                 offset=-1,
                                 limit=-1):
     dir_id = seafserv_threaded_rpc.get_dir_id_by_commit_and_path(
         repo_id, commit_id, path)
     if dir_id is None:
         return None
     return seafserv_threaded_rpc.list_dir(repo_id, dir_id, offset, limit)
示例#2
0
 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)
示例#3
0
 def list_dir_by_commit_and_path(self, commit_id, path):
     dir_id = seafserv_threaded_rpc.get_dir_id_by_commit_and_path(
         repo_id, path)
     return seafserv_threaded_rpc.list_dir(dir_id)
示例#4
0
文件: api.py 项目: jbrissier/seafile
 def list_dir_by_commit_and_path(self, commit_id, path):
     dir_id = seafserv_threaded_rpc.get_dir_id_by_commit_and_path(repo_id, path)
     return seafserv_threaded_rpc.list_dir(dir_id)
示例#5
0
文件: api.py 项目: airbai/seafile
 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)
示例#6
0
文件: api.py 项目: airbai/seafile
 def list_dir_by_commit_and_path(self, repo_id,
                                 commit_id, path, offset=-1, limit=-1):
     dir_id = seafserv_threaded_rpc.get_dir_id_by_commit_and_path(repo_id, commit_id, path)
     if dir_id is None:
         return None
     return seafserv_threaded_rpc.list_dir(repo_id, dir_id, offset, limit)