当前位置: 首页>>代码示例>>Python>>正文


Python seafserv_threaded_rpc.list_dir函数代码示例

本文整理汇总了Python中service.seafserv_threaded_rpc.list_dir函数的典型用法代码示例。如果您正苦于以下问题:Python list_dir函数的具体用法?Python list_dir怎么用?Python list_dir使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了list_dir函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: list_dir_by_dir_id

 def list_dir_by_dir_id(self, repo_id, dir_id, offset=-1, limit=-1):
     """
     Return: a list of Dirent objects. The objects are sorted as follows:
             - Directories are always before files
             - Entries are sorted by names in ascending order
     """
     return seafserv_threaded_rpc.list_dir(repo_id, dir_id, offset, limit)
开发者ID:airbai,项目名称:seafile,代码行数:7,代码来源:api.py

示例2: list_dir_by_commit_and_path

 def list_dir_by_commit_and_path(self, repo_id, commit_id, path, offset=-1, limit=-1):
     try:
         dir_id = seafserv_threaded_rpc.get_dirid_by_path(repo_id, commit_id, path)
     except SearpcError as e:
         if str(e).startswith(SeafileAPI.PATH_NOT_EXIST_PREFIX):
             dir_id = None
         else:
             raise e
     if dir_id is None:
         return None
     return seafserv_threaded_rpc.list_dir(repo_id, dir_id, offset, limit)
开发者ID:nichtdu,项目名称:seafile,代码行数:11,代码来源:api.py

示例3: list_dir_by_commit_and_path

 def list_dir_by_commit_and_path(self, repo_id,
                                 commit_id, path, offset=-1, limit=-1):
     dir_id = seafserv_threaded_rpc.get_dirid_by_path(repo_id, commit_id, path)
     return seafserv_threaded_rpc.list_dir(repo_id, dir_id, offset, limit)
开发者ID:miurahr,项目名称:seafile,代码行数:4,代码来源:api.py

示例4: list_dir_by_dir_id

 def list_dir_by_dir_id(self, repo_id, dir_id, offset=-1, limit=-1):
     return seafserv_threaded_rpc.list_dir(repo_id, dir_id, offset, limit)
开发者ID:miurahr,项目名称:seafile,代码行数:2,代码来源:api.py

示例5: list_dir_by_commit_and_path

 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)
开发者ID:jbrissier,项目名称:seafile,代码行数:3,代码来源:api.py

示例6: list_dir_by_dir_id

 def list_dir_by_dir_id(self, dir_id):
     return seafserv_threaded_rpc.list_dir(dir_id)
开发者ID:jbrissier,项目名称:seafile,代码行数:2,代码来源:api.py

示例7: list_dir_by_path

 def list_dir_by_path(self, repo_id, path, offset=-1, limit=-1):
     dir_id = seafserv_threaded_rpc.get_dir_id_by_path(repo_id, path)
     if dir_id is None:
         return None
     return seafserv_threaded_rpc.list_dir(repo_id, dir_id, offset, limit)
开发者ID:airbai,项目名称:seafile,代码行数:5,代码来源:api.py


注:本文中的service.seafserv_threaded_rpc.list_dir函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。